Skip to content

Repeat with Index

AutomationDirect edited this page Jan 3, 2020 · 2 revisions

Repeat with Index


Description

Run a set of commands repeatedly for a given number of times. The current number of repeats is stored in a variable.


Usage

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.


Notes

  • The 'times' must have a block connected to it, otherwise the program will not be able to 'verify' or 'upload'.

Clone this wiki locally