Skip to main content

End loop

Sophie avatar
Written by Sophie
Updated over 2 months ago

Definition and Usage

The End Loop command marks the termination point of a loop structure in an RPA workflow. It signifies where the program should return to the beginning of the loop to start the next iteration or exit the loop entirely when the loop condition is no longer met.


Parameter Values

Input parameters

This command does not require any input parameters.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

While the End Loop command itself doesn't use variables, it works in conjunction with loop initialization commands (such as Loop by count, Loop by condition, Loop through list) that typically contain variables to control the loop execution. These variables determine when the loop should terminate.


Notes

  • The End Loop command must always be paired with a corresponding loop start command, it will cause an error in your workflow.

  • Ensure proper nesting when using multiple loops - each End Loop corresponds to the most recent unclosed loop start command.

  • The loop body (all actions between the loop start and End Loop commands) will execute according to the conditions specified in the loop start command.

Did this answer your question?