while Loop
Syntax
while (condition) {
// body
}
Example
int32:count = 0;
while (count < 10) {
println(`&{count}`);
count++;
}
Notes
- No trailing semicolon after closing brace
- For state-tracked loops, prefer
when/then/end - For counted iteration, prefer
loop()ortill()
Related
- when.md — when/then/end (state-tracked while)
- loop_till.md — counted iteration