Skip to main content

BREAK

Breaks out of the current loop (e.g., WHILE or FOR) based on the given condition.

At a glance

  • Category Control
  • Version: 1.1.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
conditionThe condition to evaluate. Loop will be broken when condition evaluates to true. If not provided, breaks unconditionally.NonefalsetrueNoneNone

Examples

Break loop if condition met

 - step: WHILE
condition: "{{ flowContext.counter < 10 }}"
do:
- step: SET
counter: "{{ flowContext.counter + 1 }}"
convertTo: "number"
- step: BREAK
condition: "{{ flowContext.counter == 5 }}"

See Also

General Resources: