Looping
| Function | Summary |
|---|---|
| do | Creates a do...while loop. |
| for | Creates a generic for loop. |
| foreach | Iterates over arrays in different ways. |
| while | Creates a while loop. |
In this section
- do This mechanism is very similar to the "while" construct, except that the expression is checked at the end of each iteration instead of in the beginning. The main difference is that this construct will always execute the first iteration (regardless of how the test expression evaluates). It supports b
- for This mechanism makes it possible to do generic looping. It supports looping over numerical ranges in both directions. In addition it also supports breaking, continual and skipping.
- foreach This construct makes it possible to iterate over arrays in different ways. The loop can be tweaked using parameters:
- while This construct is the simplest loop mechanism that the template language offers. It tells Exponential to execute the nested statement(s) repeatedly, as long as a given expression evaluates to TRUE. The value of the expression is checked for every loop iteration (at the beginning of the iteration). I
Contributors
- Balazs Halasy Updated
Comments
Add a comment