Skip to content

While — Reference

Reference · Advanced · Server Connect

Repeat nested steps while a server expression remains truthy.

Repeat nested steps while a server expression remains truthy.

  • An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.

Repeat nested steps while a server expression remains truthy.

Setting Meaning
ConditionRe-evaluated before each iteration. The nested work must eventually make it false, or another exit condition must stop the loop.
Max IterationsCaps iterations. Use an explicit positive integer such as 3 during testing. Omission allows a very large runtime limit; zero is not a reliable way to disable the loop.
ExecThe nested steps to run on each iteration. Use Break for a deliberate early exit.

Initialize a global action-scope counter to 0 with Set Value. Set Condition to counter < 3 and Max Iterations to 3. Inside Exec, set the same Global Name counter to counter + 1. After the loop, output counter and confirm it is 3.

Changing a step’s local Name alone is not a persistent loop counter. Make the state update and maximum explicit. A loop that never changes its condition can keep a request occupied until its limit or infrastructure timeout.

Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.

You can configure While deliberately and verify the result and failure behavior described in this reference.