aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests/if.lingo
blob: c9bdacac525ad339f20200efc75205dabef613ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--
set x = 1
if x = 5 then exit
else put 10.0

repeat with x = 1 to 5
	if x = 3 then put 30
	else if x = 4 then put 40
	else if x = 5 then put 50
	else put 10.0
	if x = 1 then
	  put 1
	else if x = 2 then
	  put 1232.12345678901234
	  put 2.2
	else if x = 3 then put 3
	end if
	if x = 4 then put 4
	else put 5
end repeat