Loop Steps
This section describes looping steps in Device Automation workflow.
There are three loop steps: the Loop step, the While Loop step and the For Each Loop step.
The following is common for all loop steps:
- All loop steps have an optional Iteration variable.
- You can break out of loop steps using the Break step.
- You can skip to the next iteration using the Continue step.
- Iteration variable
-
All loop steps has an optional Iteration variable. This is an Integer variable that you can define in the step with the following characteristics.
- The variable's Initial value is 0, that is, during the first iteration the variable is 0.
- It is increased by one at the end of each iteration of the loop.
- The variable is local to the loop step and it is not accessible outside the loop.
- The variable is read only, which means you cannot change it using the Assign step.