summaryrefslogtreecommitdiff
path: root/test/ifblock1.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/ifblock1.lm')
-rw-r--r--test/ifblock1.lm46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/ifblock1.lm b/test/ifblock1.lm
new file mode 100644
index 0000000..3797529
--- /dev/null
+++ b/test/ifblock1.lm
@@ -0,0 +1,46 @@
+##### LM #####
+if 1
+ print( '1\n' )
+
+if 2 {
+ print( '2\n' )
+}
+
+if 3 {
+ print( '3\n' )
+ print( '4\n' )
+}
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+
+if 0
+ print( '0\n' )
+elsif 1
+ print( '5\n' )
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+elsif 1
+ print( '6\n' )
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+else
+ print( '7\n' )
+##### EXP #####
+1
+2
+3
+4
+5
+6
+7