Repeat
Built-in step · 4 steps
Run steps more than once.
To learn when to use these steps, with examples, read Repeat steps.
Close each section with an End repeat step.
Steps
| Step | What it does |
|---|---|
| Item number | Inside a loop, which time round it is: item 3 of 10, and whether it is the first or the last. |
| Repeat a set number of times | Run these steps a fixed number of times. |
| Repeat for each item | Run these steps once for each item in a list. |
| Repeat while | Repeat these steps while something is true. |
Item number
Inside a loop, which time round it is: item 3 of 10, and whether it is the first or the last. Useful for “Row 3 of 10”, page numbers, or doing something only once.
Inputs
None.
Outputs
Where the run is in the loop it is in, the innermost one when loops are inside each other.
is_firsttrue/false- Whether this is the first time round.
is_lasttrue/false- Whether this is the last time round, or blank for a Repeat while.
numbernumber- Which time round this is, counting from 1.
totalnumber- How many times the loop runs in all, or blank for a Repeat while, which can't know.
Example output
{
"is_first": false,
"is_last": false,
"number": 3,
"total": 10
}Repeat a set number of times
Run these steps a fixed number of times. Use this when you know exactly how many times the steps should run.
Inputs
- Number of times
countnumberRequired - How many times to run the steps. Must be a whole number that is zero or greater.
Outputs
No output. The steps inside run the given number of times.
Repeat for each item
Run these steps once for each item in a list. Useful for handling contacts, rows, files, or other items one at a time.
Inputs
- List
itemslistRequired - The list or collection to loop over.
Outputs
No output. Inside the loop, each item in turn is available under the loop variable's name.
Repeat while
Repeat these steps while something is true. Use this when you do not know ahead of time how many times the steps should run.
Inputs
- Keep repeating while
conditiontextRequired - The condition checked before each iteration. The loop keeps running as long as it holds. Make sure something in the loop eventually makes it false.
Outputs
No output. The steps inside repeat for as long as the condition holds.