Library / Building Blocks & Utilities
Building Blocks & Utilities
Route items through If branches and recombine them with a Merge node
Manually triggered demo that sets a value, checks a condition with an If node, edits fields on each branch, then merges the chosen branch back into one output.
What it does
## Merge ### How it works This workflow is manually triggered, creates an initial field value, and evaluates it with an If node. Depending on the condition result, it sets different fields on one of two branches, then recombines the selected branch with a Merge node. The final No Operation node acts as a pass-through endpoint for inspecting the merged output. ### Setup steps - No external credentials are required for this workflow. - Configure the initial value in the first Edit Fields node. - Review the condition in the If node so it routes items as intended. - Adjust the two branch Edit Fields nodes and the Merge node mode to match the desired output structure. ### Customization Change the set fields on either branch, update the If condition, or switch the Merge mode if you want to combine data differently.
The steps
- Manual Trigger
- Set Value Field
- Check Field Equality
- Prepare Fields for Merge
- Set 123 Field
- Merge Branches
- End Workflow
Similar automations
Documents, PDF & OCRMerge Two Remote PDFs with a PDF Merge API34 stepsBuilding Blocks & UtilitiesJoin Different Datasets with the Merge Node10 stepsBuilding Blocks & UtilitiesLearn the n8n Set Node with a Step-by-Step Tutorial12 stepsBuilding Blocks & UtilitiesMerge Multiple Loop Runs into One Result7 steps