Loop Internal Variables at Execution
During sequence execution, at each loop iteration, three loop internal variables are updated:
· Index (Step.Index)—Iteration number. Index is initialized to -1 (first time entering into the loop), equals 0 at first iteration and is incremented each time reentering into the starting loop step (coming from the ending loop step).
· CurrentValue (Step.CurrentValue)—Current loop value. This value can be calculated (numeric loop type only) or extracted from a list of value (numeric or string loop type).
· PreviousValue (Step.PreviousValue)—Value of CurrentValue at previous iteration.
These values can be read by any step included between starting and ending TS+ loop steps.
Updated Internal Variables at Execution
When using External values or Calculated values, these internal loop variables are updated first time entering into the loop:
· Values (Step.Configuration.Values)—Array containing the values which will be affected to the loop parameter.
· NbValues (Step.Configuration.NbValues)—Size of Values array.
See Also