aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests/loops.lingo
blob: 0c7592a12a6ed801487f10d53f315b2bcd315a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set x = 5
if x <= 5 then set x = 6 end if
if (x = 5) then
set x = 7 -- this is comment
else
set x = 8
-- this is another comment
end if
put x
-- this is more comment
set y = 1
repeat while (y < 5)
set y = y + 1
put y
end repeat

repeat with z = 10 to 15
put z
end repeat
repeat with y = 5 down to 1
put y
end repeat