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

repeat with x = 1 to 6
	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
	else if x = 4 then
	  put 4
	else if x = 5 then
	  put 5
  	else if x = 6 then
	  put 6
	end if
	if x = 4 then put 40
	else put 50
end repeat