Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Use the For Loop component

Execute a code recurrently to perform tasks of repetitive nature with the For Loop component in the RPA Desktop Design Studio. The For Loop is a control flow component for specifying iterations.

Before you begin

Role required: none

About this task

You can configure the properties for the For Loop component.

PropertyDescription
Delay After ExecutionThe number of seconds to pause after running.
Delay Before ExecutionThe number of seconds to pause before running.
Delay for each execution (Seconds)Specified delay before each execution.
Increment BySpecified number by which the component increments the values. For example, if the number is 2 and the loop is from 1 through 10, then the numbers are 1, 3, 5, and so on.
Enable TimeoutOption to set a timeout value.
TimeoutNumber of seconds that the operation ends after if not completed. To apply this value, you must set the Enable Timeout property.

Procedure

  1. In the Toolbox pane, navigate to Loops > For Loop.

  2. Drag the For Loop component to the Design surface.

  3. To configure the input fields, see Configure port properties.

  4. Connect the data and control ports of the For Loop component to the corresponding ports of the other components as described in the following table.

    Port typePort nameData typePurpose of connectionDefault valueMandatory?
    Data InFromIntegerTakes the starting value of the For Loop counter.Not applicableYes
    Data InToIntegerTakes the end value of the For Loop counter.Not applicableYes
    Data OutIndexIntegerPasses the current value of the For Loop counter to the next component.Not applicableYes
    Control OutLoopNot applicablePasses the iteration to the next component.Not applicableYes
  5. To test the component, under the DESIGN tab, click Run.

Parent Topic:Loops