-
Notifications
You must be signed in to change notification settings - Fork 4
Repeat with Index
AutomationDirect edited this page Jan 3, 2020
·
2 revisions
Run a set of commands repeatedly for a given number of times. The current number of repeats is stored in a variable.
Place an integer value in the 'times' socket and connect desired blocks under the 'commands' hook. These blocks will run in order repeatedly for the given number of times. The current number of repeats is stored in a variable connected to 'index'. Placing a 'break' block inside the 'commands' will cause the program to exit the current 'Repeat with Index' block.
- The 'times' must have a block connected to it, otherwise the program will not be able to 'verify' or 'upload'.