WorkflowbeginnerWorkflows

ForEach Iteration Pattern

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 · Iteration · 12 connections

Graph Preview

for-each-workflow.vnwView source

Execution Flow

1

Pass list to ForEach node

2

ForEach emits one item per iteration

3

Process each item in sub-chain

4

Collect results back into list

5

Output aggregated results

Node Breakdown

Input ListData
ForEachLogic
Process ItemData
CollectLogic
Result ListOutput

Tags

#foreach#iteration#list#pattern#beginner

Source

workflows/for_each.json

General workflow demonstrating core patterns

Related Examples

Browse all →
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

While Loop with Break

intermediate

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
#while#loop#break
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