added elif
This commit is contained in:
11
tests/else_if_shorthand.sl
Normal file
11
tests/else_if_shorthand.sl
Normal file
@@ -0,0 +1,11 @@
|
||||
import stdlib/stdlib.sl
|
||||
|
||||
word main
|
||||
10 1 < if
|
||||
"first" puts
|
||||
else 1 2 < if
|
||||
"second" puts
|
||||
else
|
||||
"third" puts
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user