Skip to main content
Roberty Studio
RPAMy robot

Set loop count

Set loop count

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​

The loop whose counter changes. Pick one of the loops in the robot.

New counter 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 and New counter 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 1 may end the loop or behave unexpectedly, depending on the configuration.