The Repeat block runs all the blocks that follow it the specified number of times. The Repeat block is useful when you want to automate repetitive tasks, like processing a set of data items or performing a sequence of actions multiple times.
Count - Specify the number of times to run the Repeat block here. Connect this input port to any block that sends a number.
Start - This input port runs the block when it receives input. If no block is connected to this input port, the Repeat block triggers when the flow runs. For example, you could connect a Send Request block's Success output port here to synchronize the Repeat block with the request's successful response.
Index - This output port sends the current run's index number. The first run's index number is 0.
Connect any block that sends a number to the Count input port. Connect the Index output port to one or more blocks you want to run a specific number of times. Optionally, connect the Start input port to another block's output to run the Repeat when the other block sends data.
To see the Repeat block in an example flow, check out Flow Snippets: Repeat.
Last modified: 2024/08/23