Loops are useful when you want to execute a step or a group of steps multiple times. For example, you may want to send an email to each customer in a list. You can use a loop to achieve this.
There are two types of loops: For range
and For each
.
The For range
loop allows you to execute a step or a group of steps a specified number of times.
You can specify the number of times to execute the steps by specifying the start
and end
values. The steps will be executed for each value between start
and end
.
Also you have to provide a variable name to store the current value. In the example above, the current value is stored in the variable number
. Also, you can specify a variable name to store the current index. In the example above, the current index is stored in the variable index
.
The For each
loop allows you to execute a step or a group of steps for each item in a list. For example, you may want to send an email to each customer in a list. You can use a For each
loop to achieve this.
You can specify the list to iterate over using the of
field. Also, you have to provide a variable name to store the current item. In the example above, the current item is stored in the variable email
. Also, you can specify a variable name to store the current index. In the example above, the current index is stored in the variable index
.