Contents
Table of Contents |
---|
...
Code Block |
---|
for(<variable_definition> in #{array}){ Instruction1; ... InstructionN; } |
Examples
Example 1 (standard form)
...
Code Block |
---|
for(string user in watchers){ print(user); } |
While Statement
The while statement offers support for repeated executions. This form evaluates the condition first and then executes the instructions in the body.
...
Code Block |
---|
number i = 1; while (i <= 10) { if (i % 3 == 0) { i = i + 1; continue; } print(i); i = i + 1; } |