fixed reassignment, starting work on if statements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
depend "io.pla"
|
||||
|
||||
if (1 + 2 == 3) {
|
||||
if 1 + 2 == 3 {
|
||||
print("The universe is functional!");
|
||||
}
|
||||
unless
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
main = Func(): Int {
|
||||
x: Int = 0;
|
||||
x: Int = 123;
|
||||
|
||||
x = x * 2;
|
||||
if x == 123 {
|
||||
x = 0;
|
||||
} unless {
|
||||
x = 1;
|
||||
}
|
||||
|
||||
return x;
|
||||
}
|
||||
Reference in New Issue
Block a user