aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests/if.lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-01 22:57:24 +0100
committerEugene Sandulenko2019-12-01 22:57:47 +0100
commit21d3fc43567186634259c9e0eb00b9f0d33ac017 (patch)
treebcf73de28a22663cffd7a000c0048036c94bbfec /engines/director/lingo/tests/if.lingo
parentb7c397412dd2cd5aa81723fa31d9e13ee83e1493 (diff)
downloadscummvm-rg350-21d3fc43567186634259c9e0eb00b9f0d33ac017.tar.gz
scummvm-rg350-21d3fc43567186634259c9e0eb00b9f0d33ac017.tar.bz2
scummvm-rg350-21d3fc43567186634259c9e0eb00b9f0d33ac017.zip
DIRECTOR: LINGO: Fix compilation for multiple if conditions
Diffstat (limited to 'engines/director/lingo/tests/if.lingo')
-rw-r--r--engines/director/lingo/tests/if.lingo9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/director/lingo/tests/if.lingo b/engines/director/lingo/tests/if.lingo
index 512a154a86..d7809e772d 100644
--- a/engines/director/lingo/tests/if.lingo
+++ b/engines/director/lingo/tests/if.lingo
@@ -3,6 +3,8 @@ set x = 1
if x = 5 then exit
else put 10.0
+set y = 4
+
repeat with x = 1 to 6
if x = 3 then put 30
else if x = 4 then put 40
@@ -42,5 +44,8 @@ end repeat
go to frame 1
end if
--- specialized macros to determine which sub-menu to return to
--- (these two files appear in two different menus)
+if abs(y) = x and abs(x) = y then
+ put TRUE
+else
+ put FALSE
+end if