The Repeat block

Repeat block

The Repeat block runs all the blocks following it for the number of times given. The Repeat block is useful when you want to automate repetitive tasks like processing a data set or performing a sequence of actions multiple times.

Inputs

  • Count - Specifies the number of times to run the Repeat block. Connect the input port to any block that sends a number.
  • Start - Runs the block when it receives input. If there's no block connected, the Repeat block triggers when the flow runs. For example, you could connect an HTTP Request block's Success output port to synchronize the Repeat block with the request's successful response.

Output

Index - Sends the current run's index number. The first run's index number is 0.

Setup

Connect any block that sends a number to the Count input port. Connect the Index output port to one or more blocks that you want to run a specific number of times. You can also connect the Start input port to another block's output to run the Repeat block when the other blocks send data.

Example

To see the Repeat block in an example flow, check out Flow Snippets: Repeat.

Last modified: 2025/05/27