While
While - loop implementation which compiles condition and then code on every iteration. Loop will continue until condition's result is true.
Syntax
while CONDITION { code };
Examples
tpl-lang
int32 a = 0;
while a < 5 {
print(a);
a += 1;
}
print("Done");
0
1
2
3
4
Done
tpl-lang
while true {
// infinite loop
print("something");
}
something
something
something
something
something
...