$for

A loop that iterates over a range of values.
Syntax
    $for {initialization_statement} {continuation_condition} {incrementation_statement} {statement} {max_loops}
DocumentationA loop that iterates over a range of values:

    Parameters:
      initialization_statement, the statement that initializes the loop counter (something like $set{counter}{0}).
      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).
    Note:
      to avoid deadlocks the maximum amount of loops is set 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:

    $set{sum}{0}

    $for{$set{counter}{1}} {$lessOrEqual{$get{counter}}{10}} {$incLocal{counter}}
      {
      $set{sum}{$add{$get{sum}}{$get{counter}}}
      }
GroupControl_Flow
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_EXPERT
Minimum parameters4
Maximum parameters 5