Loop

The Loop action An instruction within a botflow. instructs the loop to repeat a specific set of actions a certain number of times.

For each Loop action created or deleted, a corresponding End Loop action is also created or deleted.

Using the Loop action, you can:

Some examples of using the Loop action are:

  • Repeat a Get Value action to copy all values in all rows in a list.
  • Repeat a Send Value action to paste all values in all rows in a list to an online form.
  • Repeat a Create List action to create lists needed in a botflow.

Add a Loop action to a botflow

This example provides the steps necessary to add a Loop action to a botflow.

To add a Loop action to a botflow:

  1. On the Actions list, click Loops and select Loop from the Loops list.
  2. The Loop Action Builder window displays.

  1. Set the Loop settings.
  2. Loop: Select the Loop action behavior from the drop-down list:

    • Exact times: Sets the exact number of times to repeat an action in a Botflow.
    • Forever: Repeats an action in a Botflow until instructed to end with an Exit Loop action.
    • List: Provides a listing of available lists in the Botflow. The loop limit is the number of rows in the list.

  1. If needed, adjust the Run Switch setting to create the action without running it.
  1. Optionally, add an action note.
  2. Click OK to add the Loop action to the botflow.