Templates / 🎓 Learn Workflow Logic with Merge, IF & Switch Operations

🎓 Learn Workflow Logic with Merge, IF & Switch Operations

Ready for 3.0

by Lucas Peyrin ✓ · 5,020 views · created 2025-07-14 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 15 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Create Parcel (Edit Fields (Set)): sets 4 fields: package_id, type, destination…
  2. Create 2nd Letter (Edit Fields (Set)): sets 3 fields: package_id, type, destination
  3. Create Letter (Edit Fields (Set)): sets 3 fields: package_id, type, destination
  4. 1. Merge Node (Merge): merges the data from its input branches
  5. 2. IF Node (If): checks a condition and branches into true / false
  6. Add 'Fragile' Handling (Edit Fields (Set)): sets 1 field: handling_instructions
  7. Add 'Standard' Handling (Edit Fields (Set)): sets 1 field: handling_instructions
  8. Re-group All Packages (Merge): merges the data from its input branches
  9. 3. Switch Node (Switch): routes items into 3 branches
  10. Send to London Bin (Edit Fields (Set)): sets 1 field: sorting_bin

…plus 3 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

How it works Ever wonder how to make your workflows smarter? How to handle different types of data in different ways? This template is a hands-on tutorial that teaches you the three most fundamental nodes for controlling the flow of your automations: Merge,…

Excerpt from Lucas Peyrin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.