added support for if elif else statements by returning a boolean
from the identifier syntax parsing
This commit is contained in:
+11
-3
@@ -1,10 +1,18 @@
|
||||
@tim says "hello world, it's a good day"
|
||||
@tim change name "Timothy Fineshooter"
|
||||
$x = 3
|
||||
$x + 1
|
||||
$x - 2
|
||||
if $x == 4 {
|
||||
@tim says "5"
|
||||
}
|
||||
elif $x < 5 {
|
||||
|
||||
@tim says "<5"
|
||||
}
|
||||
else {
|
||||
@tim says "whar"
|
||||
}
|
||||
label:
|
||||
choice "choice numero uno" {
|
||||
$choice_string = choice "choice numero uno" {
|
||||
@tim says "super sad"
|
||||
}
|
||||
or "choice numero duo" {
|
||||
|
||||
Reference in New Issue
Block a user