Create a LOOP

A LOOP repeats the same action(s) for a specified number of times. Rather than create the same Step over and over, you can create it once and run it repeatedly. You can also loop a sequence of Steps.

To add a LOOP to your Bot, follow the steps below:

  1. In the Flowchart tab, click on Add.

  2. In the Logic tab of the subsequent dialog, click on LOOP.

  3. In the Flowchart, enter a name for your LOOP into the <New Loop> entry field.

  4. Add a Step by clicking on Add.

    You can use a Module to create this Step, or you can add another Logic element.

  5. Add as many Steps as needed.

  6. By default, the Bot repeats the LOOP 10 times.

    • If you want your Bot to run the LOOP a different number of times, enter a positive integer into the Value field in the Details tab.

      You can also use Buffers, for instance if you saved the row count of a table.

    • If you want to create an endless LOOP, delete the number from the Value field.

Endless LOOP

Turn a LOOP into a Conditional LOOP

You can turn your LOOP into a Conditional LOOP by adding a Control Expression.

To do so, follow the steps below:

  1. In the LOOP, click on Add.

  2. In the Logic tab of the Add dialog, select Condition.

Add dialog: select Condition

Was this information helpful?

Tricentis RPA Studio Manual 2020.2 © Tricentis GmbH