BrainGrid Controller
Process Orchestrator
Loops
While Loop

While Loop

The While Loop evaluates a condition at the start of each iteration. The loop continues running its inner nodes as long as the condition is true. When the condition becomes false, the loop exits.

Create While Loop configuration dialog

Configuration

FieldDescription
TitleA name for this loop node
DescriptionOptional notes about the loop's purpose
ConditionThe binary expression evaluated before each iteration. The loop runs while this is true

Loop Canvas

Click Configure While Loop to open the nested canvas.

While Loop nested canvas configuration

A Binary Condition node is placed automatically at the start. Connect the If branch to the nodes that should run each iteration, and the Else branch to a Break node to exit the loop. Click Save to apply.