Loop for a specified number of times

Updated at:

1. Component overview

Note

Prerequisites: None

Use this component to loop for a specified number of times.

2. Inputs

Note

For more information about each input, see the component's help text in the application flow editor.

3. Outputs

Note

For more information about each output, see the component's help text in the application flow editor.

4. Component example

4.1. Configuration example

  1. Set Start Value to 1.

  2. Enter 5 in the Loop End Value field.

  3. Set Step Size to 1.

  4. Keep the default values for the advanced options.

4.2. Example result

None

5. Example flow

Setup flow

1. Use the Loop for a specified number of times component to set the number of iterations.

2. Use the Record Log component to print the value of the loop item in each iteration.

image

Execution result

As shown in the following figure, the flow runs five times and prints the value of the loop item in each iteration.