WorkflowintermediateWorkflows

Conditional with Variables

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 · State · 8 connections

Graph Preview

logic-if-with-variables.vnwView source

Execution Flow

1

Set shared variable before branching

2

If/Else routes execution to true or false path

3

Each branch reads the shared variable

4

Both paths converge at merge step

Node Breakdown

Set VariableData
If / ElseLogic
True PathControl
Get VariableData
Merge ResultData

Tags

#variables#conditional#state#intermediate#exec-flow

Source

workflows/logic_if_with_variables.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

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