While

The While action node runs a block of action nodes as long as a condition evaluates to true.

Usage

This action node is an iterator. It is used to continuously loop over one or more action nodes while a condition is true. The action nodes to be run are placed inside the While action node.

This action node is suited to cases where you have a fixed number of iterations that you wish to run, or when the total number of iterations is unknown.

When the action node is first run, the condition is evaluated. If the condition evaluates to true, the action nodes placed inside the iterator are run. The condition will then we re-evaluated and continue as such. If the condition evaluates to false, the iterator terminates and the next action node (if any) will be run.

Important

One of the action nodes inside the iterator should affect the condition to ensure that it does at some point evaluate to false and the iterator can terminate.

Example

A While example is available in our Showroom. You can view the demo, as well as access the setup in Appfarm Create. Don't have access? Register.

Properties

PropertyDescription

Condition

Define a condition that will be evaluated before each iteration. The condition must evaluate to true for the action nodes inside the iterator to run. When the condition evaluates to false, the action will move on to the next action node.

Last updated