Skip to main content

WHILE

Repeatedly executes a set of steps while a condition evaluates to true.

At a glance

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

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
conditionThe condition to evaluate for the loop. Can be a template expression with {{ }} syntax.NonefalsetrueLength:1-∞None
testLegacy alternative to condition. The test expression to evaluate using JavaScript syntax.NonefalsefalseLength:1-∞None
doSteps to execute in each iteration of the loop.NonefalsefalseNoneNone

Step-Level Validation Rules

Require Exactly One:

  • Exactly one of: condition, test

Examples

While loop with condition

 - step: WHILE
condition: "{{ flowContext.counter < 10 }} "
do:
- step: SET
counter: "{{ flowContext.counter + 1 }}"
convertTo: "number"
- step: SHOW_NOTIFICATION
message: "Iteration {{flowContext.counter}}"

See Also

General Resources: