mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-21 15:50:40 +00:00
Implement variable reassignment and while loops
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
test("hello" + 3 + "gdfg", (2 * (3+1) * (2 * (1+1))));
|
||||
//
|
||||
|
||||
num testVar = 3.4;
|
||||
bool boolean = true;
|
||||
str stringVar = "hello!";
|
||||
|
||||
num iterator = 0;
|
||||
|
||||
while(iterator < 5) {
|
||||
test("fdsgdf" + 2 + stringVar, iterator);
|
||||
iterator = iterator + 1;
|
||||
}
|
||||
|
||||
|
||||
if(true && boolean) {
|
||||
num scopedVar = 2;
|
||||
test("fdsgdf" + 2 + stringVar, 1 + testVar + scopedVar);
|
||||
|
||||
Reference in New Issue
Block a user