Change the loop counter
Change the loop counter
Changes a particular Loop's counter value while the robot runs. It is what lets you build non-linear repetition — restarting the loop from a given iteration, or skipping several at once.
Options
Loop ID
The loop whose counter changes. Pick one of the loops in the robot.
Iteration value
The new value for the loop's counter. It takes a fixed number, another action's output, code or a variable.
Returns
This action produces no data.
Rules and conditions
- Loop ID and Iteration value are both required.
- It has to be used inside the Loop you selected.
- The value you give becomes the counter's next value — the loop resumes from it on the next iteration.
- Values below
1may end the loop or behave unexpectedly, depending on the configuration.