Loop Logic Block
The Loop Block allows you to repeat a set of actions multiple times within your workflow, either for a fixed count or until a condition is met.
No external credentials required. The Loop block is a built-in logic block available in all workflows.
Supported Modes
- Fixed Count - Repeat actions a specified number of times.
- While Condition - Repeat actions as long as a condition evaluates to true.
- Until Condition - Repeat actions until a condition becomes true.
Configuration
- Loop Type - Select fixed count, while, or until mode.
- Iterations - Maximum number of iterations (for fixed count mode).
- Condition - Boolean expression evaluated each iteration (for while/until modes).
- Loop Variable - Variable that holds the current iteration index (zero-based).
- Max Iterations - Safety limit to prevent infinite loops (default applies if not set).
Use Cases
- Retry an API call up to N times if it fails, with a wait between attempts.
- Process each item in a list by combining the Loop block with array indexing.
- Poll an external service until a desired status is returned.