Skip to main content
[Command] Loop by count
Sophie avatar
Written by Sophie
Updated over a year ago

Definition and Usage

The Loop by count command is used to iterate over a set of commands a specified number of times. You specify a certain number of iterations, and then the command will be repeated until all iterations have been executed.


Parameters Values

Set parameters

Parameter

Description

Count

Specify the number of times to iterate with

Save loop index as

Save the above loop index as a new variable

Advanced settings

Parameter

Description

From

Specify the index to start with

Increment by

Indicate the index value to increase by each time.


Example

The above workflow will loop 10 times, creating a variable named "loopIndex" each loop, which will contain the current loop index value. At the end of each loop, this "loopIndex" variable will be printed out. Then the workflow will end.

Did this answer your question?