Using Loop action

Use the Loop action to repeat a set of commands multiple times based on a specified condition or over a collection of items. You can loop through various data structures such as lists, tables, files, and more.

For example, you can use a loop to process each row in an Excel sheet, iterate through files in a folder, or repeat actions a certain number of times. This helps in automating repetitive tasks efficiently.

Procedure

To repeatedly run a sequence of actions, do the following:

  1. Double-click or drag the Loop action from the Actions palette.
  2. In the Label field, add a label for the specific loop action to identify your loop. For more information on loop labels, see Labeling loops for automation control.
  3. Select the Iterator option to repeat the sequence of actions for a specific number of times.
    1. From the Iterator list, select an option to specify the number of times the sequence of actions must be repeated. For more information regarding different iterator conditions to control the iteration of loops, see Iterator-related conditions.
  4. Select the While option to repeat the sequence of actions until a condition is met.
    1. Select an option from the Condition list to specify the condition.
    2. To configure multiple While related conditions within a single Loop action:
      1. Click Add condition.
      2. Select either of the following options:
        • And: Both the conditions must be met for the actions to run.
        • Or: Either of the conditions must be met for the actions to run.
      3. Select the conditions from the drop-down list. For more information regarding different conditions offered by the Loop package, see While-related conditions.
    3. To organize and manage multiple conditions or actions within a loop:
      1. Click Add group.
      2. Click Add condition to configure a condition or multiple conditions.
      3. Click Add group to add a group of multiple conditions or actions.
  5. Select the Check the condition at the end of the iteration option to validate the condition at the end of each iteration. This option enables you to ensure that the set of actions run at least one time, even if the condition is not met.
    Note: Insert the actions that you want to repeat within the Loop.
  6. Optional: Double-click or drag the Continue action from the Loop package to skip the current iteration and continue with the next iteration of the loop.
  7. Click Save.