See llms.txt for all machine-readable content.

Back to Templates

Route and merge conditional branches with If and Merge nodes

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

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

Setup

  1. 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
  2. Adjust the fields created in each branch to match the data you want to output.12 erfger

Requirements

  • 12efvgergvregerg

Customization

  • 12reg34eg

Additional info

12gf34gfew34g