aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-11 15:02:43 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit52fa9646b0639d5fcb19e841bd5bdbcbf470596a (patch)
treea62aa0db6994daa0aa9c661a5036f813a7de6e11 /engines/director/lingo/tests
parentd72670e29decf23c8fa7af692615ff85bc97673c (diff)
downloadscummvm-rg350-52fa9646b0639d5fcb19e841bd5bdbcbf470596a.tar.gz
scummvm-rg350-52fa9646b0639d5fcb19e841bd5bdbcbf470596a.tar.bz2
scummvm-rg350-52fa9646b0639d5fcb19e841bd5bdbcbf470596a.zip
DIRECTOR: Lingo: Improved support for multiple 'else if' statements
Diffstat (limited to 'engines/director/lingo/tests')
-rw-r--r--engines/director/lingo/tests/if.lingo15
1 files changed, 11 insertions, 4 deletions
diff --git a/engines/director/lingo/tests/if.lingo b/engines/director/lingo/tests/if.lingo
index c9bdacac52..8f1e2391e6 100644
--- a/engines/director/lingo/tests/if.lingo
+++ b/engines/director/lingo/tests/if.lingo
@@ -3,7 +3,7 @@ set x = 1
if x = 5 then exit
else put 10.0
-repeat with x = 1 to 5
+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
@@ -13,8 +13,15 @@ repeat with x = 1 to 5
else if x = 2 then
put 1232.12345678901234
put 2.2
- else if x = 3 then put 3
+ 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 4
- else put 5
+ if x = 4 then put 40
+ else put 50
end repeat