WorkflowintermediateWorkflows

While Loop with Break

Run a loop until a condition is met or a max iteration count is reached. Demonstrates WhileLoop with BreakLoop and continue/stop exec pins.

4 nodesExec-Flow · Loop · 7 connections

Graph Preview

while-loop-break.vnwView source

Execution Flow

1

Initialize counter variable

2

WhileLoop fires loop_body exec pin each iteration

3

Check break condition inside loop body

4

BreakLoop exits the loop when condition met

Node Breakdown

Init CounterData
WhileLoopLogic
Check ConditionLogic
BreakLoopControl

Tags

#while#loop#break#iteration#exec-flow

Source

workflows/loop_break_example.json

General workflow demonstrating core patterns

Related Examples

Browse all →
Workflow

ForEach Iteration Pattern

beginner

Canonical ForEach usage: pass a list into ForEach, process each item through a sub-chain, collect results with Collect node, and output the aggregated list.

7 nodesAsync DAG
#foreach#iteration#list
Workflow

If/Else Branching

beginner

Route execution through one of two branches based on a boolean condition. The canonical conditional pattern in Vibrante-Node exec-flow graphs.

4 nodesExec-Flow
#conditional#if-else#branching
Workflow

Conditional with Variables

intermediate

Use SetVariable and GetVariable to share state between branches in an If/Else workflow — a realistic pattern for pipeline decision logic that needs cross-branch data.

6 nodesExec-Flow
#variables#conditional#state