For loop node
Repeat a set of actions a specified number of times.
Read time 1 minuteLast updated 2 days ago
Use the For loop node to repeat actions a set number of times. The loop counts from a start value to an end value, and fires an action each time. Think of count1 as the loop counter. It starts at From, runs the actions, then increases by Step each time, and stops when it passes the To value. The following is a general overview of how the loop works:
- Set count1 to the value of From.
- If count1 is greater than the value of To, stop.
- Otherwise, run the actions and increase count1 by Step.
- Repeat the check.
Sockets
Socket | Type | Description |
---|---|---|
From |
| The number the counter starts at. |
To |
| The final number to reach or pass before the counter and loop stops. |
Step |
| How much to increase the counter after each run. Use positive numbers to count up. |
Then |
| Fires once per loop pass. Connect an action node to run that action each time the loop iterates. |
count1 |
| The current counter value for this pass of the loop. |