| Syntax |
|
| Documentation | A loop that iterates over a range of values:
continuaton_condition, the condition that causes the looping termination when not met (something like $less{$get{counter}}{10}). incrementation_statement, the statement that increments (changes) the loop counter value (something like $incLocal{counter}). statement, the statement to execute each time the loop continuation condition is met. max_loops, an optional parameter that indicates the maximum amount of loops (defaults to 1000).
If some wishes more loops than the default amount then the max_loops argument should be used. |
| Examples | |
Build the sum of the numbers 1 through 10:
$for{$set{counter}{1}} {$lessOrEqual{$get{counter}}{10}} {$incLocal{counter}}
$set{sum}{$add{$get{sum}}{$get{counter}}} } |
|
| Group | Control_Flow |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_EXPERT |
| Minimum parameters | 4 |
| Maximum parameters | 5 |