added elif

This commit is contained in:
IgorCielniak
2026-01-12 19:51:52 +01:00
parent ce7944916a
commit a195e2b7cf
5 changed files with 37 additions and 5 deletions

View File

@@ -0,0 +1 @@
second

View 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

View File

@@ -0,0 +1 @@
python main.py tests/else_if_shorthand.sl -o /tmp/else_if_shorthand > /dev/null && /tmp/else_if_shorthand