aboutsummaryrefslogtreecommitdiffstats
path: root/tests/loops.bad
blob: 5221844d035e237da17bd4c3e0e675580f26c613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; The most basic loop is the while loop.
while abc = "heelo"

while 1 + 2 == 3 = {
    "hello"
}

while symbol = {
    "hello"
}


; We could use some sugar for this.
let i = 0
while i < 10 = {
    "hello"
    set i = i + 1
}