aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests/if.lingo
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/tests/if.lingo')
-rw-r--r--engines/director/lingo/tests/if.lingo20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/director/lingo/tests/if.lingo b/engines/director/lingo/tests/if.lingo
new file mode 100644
index 0000000000..c9bdacac52
--- /dev/null
+++ b/engines/director/lingo/tests/if.lingo
@@ -0,0 +1,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