Route and merge conditional branches with If and Merge nodes

Go to Workflow
0 views
Built by Anna Anna
Created on October 16, 2026

Description

Quick overview
This workflow runs manually in n8n, evaluates a boolean flag, routes execution down one of two branches, and then merges the chosen branch back into a single output.1343t4rgr3hg g45tg f g rt g e g 5 45 h 5h 5h 5 5h 45 h h 45 h 4 5

How it works
Runs when you manually
Sets a boolean field named val
Checks whether val equals true and routes the
Creates branch-specific output data (one branch leaves the data
Merges the two possible paths by outputting only the branch that was taken.12
Ends without performing any external action.12 erg fger erge

Setup
Set the desired value of the val field to control which branch is taken.12 rfg reg er g er rg e g e rg er g e gr e r ge r g e g e
Adjust the fields created in each branch to match the data you want to output.12 erfger

Requirements
12efvgergvregerg

Customization
12reg34eg

Additional info
12gf34gfew34g

This workflow was created by Anna and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.