Iterate
Iterates the activity execution for the specified number of times.
Properties
Name | Description |
---|---|
Iterations | The number of iterations that must be run. |
Reverse | Reverses the order of the output index. |
Usage
The activity is the same as a for loop in many languages, e.g in C#:
for (int i = 0; i < 10; i++)
{
// Do...
}
We can use the Next activity to reproduce the continue
feature which moves the process to next iteration:
for (int i = 0; i < 10; i++)
{
// ...
continue;
// ...
}
And finally, we can use the Exit activity to reproduce the break
feature interrupting the for loop:
for (int i = 0; i < 10; i++)
{
// ...
break;
// ...
}
See below a comparison of Iterate and the UiPath's equivalent activity.