Quick answer
In the Switch node, keep Mode on Rules, add a routing rule for each route and switch on Rename Output to name it. Then under Options click Add option, choose Fallback Output and change it from None (default) to Extra Output. Items that match no rule now leave through a Fallback output instead of being dropped, so connect it to a step such as a log.
Last updated · Last checked
Updated . Built against the tool’s current screens and checked step by step. How we check this lesson
Real work needs rules: big jobs go to the owner, small ones go in a log, emergencies skip the line. In n8n, two nodes handle that. The If node asks one yes or no question and sends each item down a true or false branch. The Switch node gives you as many outputs as you need, one per rule, plus a fallback for anything that matches none of them. In this free n8n IF and Switch node tutorial you build both on a real-looking workflow, check the data on every branch and publish.
At a glance
| Question | Answer |
|---|---|
| What you build | Send each request where it belongs. Use an If node to split big jobs from small ones, then a Switch with named outputs and a fallback to route by service. |
| Tools | n8n |
| Time | About 10 minutes, 40 steps in 5 parts |
| Level | Beginner, no coding needed |
| Cost | Free |
| Ways to learn it | Practice it step by step, watch the video, read the guide with screenshots |
The 5 parts, in short
- Send a test request: Run the workflow, Fill in the test form, Pick a service, Enter a budget, and 2 more steps.
- Add an If: Add the next step, Search for If, Pick If, Drag in the budget, and 6 more steps.
- Connect true and false: Connect true, Connect false.
- Add a Switch: Add a step before If, Search for Switch, Pick Switch, First rule: the service, and 14 more steps.
- Wire it up and publish: Connect Emergency, Connect Fallback, Publish, Publish it.
Start here first: n8n: What Is n8n? Build Your First Workflow (module 1 of n8n Automation Toolkit)
In the course: Part 9 · n8n Automation Toolkit (Module 84 of the full course)
Part of: n8n Jump Start (step 4 of 27). Next up: n8n: Keep Only the Rows That Matter with Filter and Edit Fields
Part of: n8n for Beginners: Your First Automations (step 11 of 12). Next up: n8n: Summarize Customer Emails with OpenAI
n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules: step-by-step guide with screenshots
About the screenshots. They come from Stepthrough’s simulated practice environment (a practice copy of n8n), not the live tool, so no real account appears. The buttons and labels match the real screens the lesson was built against. Practice it yourself free at ynteractive.com.
- Tools: n8n
- Time: about 10 minutes, 40 steps in 5 parts
- Level: beginner, no coding needed
Part 1: Send a test request
Step 1: Run the workflow
Harbor Point Handyman's service form is ready, and so are two actions: an email to the owner, and a new row in the request log. Nothing decides which one runs yet. First, get a real request to work with.

Step 2: Fill in the test form
The test version of the form just opened. Fill it in like a customer would.

Step 3: Pick a service
For the service, choose Installation.

Step 4: Enter a budget
And a budget of 2,500 dollars.

Step 5: Submit

Step 6: Back to n8n
Now go back to n8n. The form step has a green check: the request came in.

Part 2: Add an If
Step 7: Add the next step
Big jobs should go to the owner, and everything else into the log. That is a yes or no question, which is what the If node is for.

Step 8: Search for If
Search for if.

Step 9: Pick If
It sends each item down one of two branches: true, or false.

Step 10: Drag in the budget
The condition reads like a sentence: value 1, a comparison, value 2. n8n sees that it's a number and switches the comparison to Number.

Step 11: Open the comparison

Step 12: Is greater than

Step 13: Set the limit
In value 2, type 1000. So the rule is: budget is greater than 1,000.

Step 14: Execute step
Try it on the test request.

Step 15: Check the false branch
The output shows True Branch, 1 item, because 2,500 is more than 1,000.

Step 16: Close the node
Nothing went this way this time. Each item takes one branch or the other, never both. Close the node.

Part 3: Connect true and false
Step 17: Connect true
The If node has two outputs, true and false.

Step 18: Connect false
Big jobs now email the owner. Everything else goes in the log.

Part 4: Add a Switch
Step 19: Add a step before If
Now the owner wants more: emergencies should reach them right away, whatever the budget. Two roads aren't enough anymore, so add a Switch in front of the If. Point to the line between the form and If, and click the plus.

Step 20: Search for Switch
Search for switch.

Step 21: Pick Switch
It lands on that line, so the form now feeds the Switch, and the Switch feeds the If.

Step 22: First rule: the service
Mode is set to Rules: each rule gets its own output. In the first rule, drag Service into value 1. It is text, so is equal to is right.

Step 23: Repair
In value 2, type Repair.

Step 24: Rename Output
Outputs are just numbered 0, 1, 2 until you name them. Switch on Rename Output.

Step 25: Name it
Name it Repair.

Step 26: Add Routing Rule

Step 27: Second rule

Step 28: Emergency
This time, type Emergency.

Step 29: Rename Output

Step 30: Name it
And name it Emergency.

Step 31: Add option
What about installations, or anything else? By default, items that match no rule are dropped. Under Options, click Add option.

Step 32: Fallback Output

Step 33: Open Fallback Output
It starts at None, which means those items are ignored.

Step 34: Extra Output
Now anything that matches no rule gets its own output, called Fallback.

Step 35: Execute step

Step 36: Close the node
The installation matched neither rule, so it went to Fallback, 1 item. That is exactly why the fallback is there. Close the node.

Part 5: Wire it up and publish
Step 37: Connect Emergency
Repair is already connected to the If, so repairs still get the budget check.

Step 38: Connect Fallback

Step 39: Publish
Every road now leads somewhere.

Step 40: Publish it
Keep the version name n8n suggests, and click Publish. From now on, every request from the form is routed on its own.

Part of these free courses: n8n Jump Start, n8n for Beginners: Your First Automations, AI Automation with n8n: From First Workflow to AI Agents
Now do it yourself, free
Reading the steps is a start. Doing them is how it sticks. The interactive lesson puts you in a practice copy of n8n: you do every step yourself, it checks your work, and “Do it for me” finishes any step you get stuck on. Nothing touches your real accounts.
Practice “n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules” step by stepn8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules: video walkthrough
The whole lesson in 3:11, narrated step by step.
Simulated practice environment. Recorded in Stepthrough’s simulated practice environment, not the live tool. Practice it yourself free at ynteractive.com.
Chapters
Click a chapter to jump the video there.
- 0:00 Send a test request
- 0:28 Add an If
- 1:19 Connect true and false
- 1:31 Add a Switch
- 2:45 Wire it up and publish
Now do it yourself, free
Watching is the warm-up. The interactive lesson puts you in a practice copy of n8n: you do every step yourself, it checks your work, and “Do it for me” finishes any step you get stuck on. Nothing touches your real accounts.
Practice “n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules” step by stepFull transcript
Send a test request
0:00 Harbor Point Handyman's service form is ready, and so are two actions: an email to the owner, and a new row in the request log. Nothing decides which one runs yet. First, get a real request to work with. Click Execute, at the bottom of the canvas.
0:12 The test version of the form just opened. Fill it in like a customer would. Type a name.
0:17 For the service, choose Installation.
0:19 And a budget of 2,500 dollars. Type 2500.
0:22 Click Submit.
0:23 Now go back to n8n. The form step has a green check: the request came in.
Add an If
0:28 Big jobs should go to the owner, and everything else into the log. That is a yes or no question, which is what the If node is for. Click the plus after the form.
0:38 Search for if.
0:39 Choose If. It sends each item down one of two branches: true, or false.
0:44 The condition reads like a sentence: value 1, a comparison, value 2. Drag Budget from the input on the left into value 1. n8n sees that it's a number and switches the comparison to Number.
0:54 Now open the comparison drop-down.
0:56 Point to Number, and choose is greater than.
0:59 In value 2, type 1000. So the rule is: budget is greater than 1,000.
1:04 Try it on the test request. Click Execute step.
1:07 The output shows True Branch, 1 item, because 2,500 is more than 1,000. Click False Branch.
1:13 Nothing went this way this time. Each item takes one branch or the other, never both. Close the node.
Connect true and false
1:19 The If node has two outputs, true and false. Drag from the true dot to Send a message, the email to the owner.
1:25 Then drag from false to Append row in sheet. Big jobs now email the owner. Everything else goes in the log.
Add a Switch
1:31 Now the owner wants more: emergencies should reach them right away, whatever the budget. Two roads aren't enough anymore, so add a Switch in front of the If. Point to the line between the form and If, and click the plus.
1:43 Search for switch.
1:44 Choose Switch. It lands on that line, so the form now feeds the Switch, and the Switch feeds the If.
1:50 Mode is set to Rules: each rule gets its own output. In the first rule, drag Service into value 1. It is text, so is equal to is right.
2:00 In value 2, type Repair.
2:02 Outputs are just numbered 0, 1, 2 until you name them. Switch on Rename Output.
2:07 Name it Repair.
2:08 Click Add Routing Rule for the second output.
2:11 Drag Service into the new rule.
2:13 This time, type Emergency.
2:14 Switch on Rename Output.
2:16 And name it Emergency.
2:18 What about installations, or anything else? By default, items that match no rule are dropped. Under Options, click Add option.
2:24 Choose Fallback Output.
2:26 It starts at None, which means those items are ignored. Open it.
2:29 Choose Extra Output. Now anything that matches no rule gets its own output, called Fallback.
2:35 Click Execute step to route the test request.
2:37 The installation matched neither rule, so it went to Fallback, 1 item. That is exactly why the fallback is there. Close the node.
Wire it up and publish
2:44 Repair is already connected to the If, so repairs still get the budget check. Drag from Emergency to Send a message.
2:50 And drag from Fallback to Append row in sheet, so installations and anything else land in the log.
2:56 Every road now leads somewhere. Click Publish.
2:58 Keep the version name n8n suggests, and click Publish. From now on, every request from the form is routed on its own.

What you will build
You will finish a workflow for Harbor Point Handyman, a small handyman business that takes service requests through an n8n form. The form asks for a name, a service (Repair, Installation or Emergency) and a budget. Two actions are already set up in the workflow: a Gmail step called Send a message that emails the owner, and a Google Sheets step called Append row in sheet that adds the request to a log. What is missing is the part that decides which action each request should reach.
First you add an If node that checks whether the budget is greater than 1,000. Requests over that go down the true branch to the owner, and everything else goes down the false branch to the log. Then the owner asks for more, so you put a Switch in front of the If. Repairs keep the budget check, emergencies go straight to the owner whatever the budget, and anything else, such as installations, lands in a Fallback output that feeds the log.
Who this n8n If node tutorial is for
This module is for small business owners, office managers and anyone who has built a simple n8n workflow and now wants it to make decisions. You do not need to code, write expressions by hand or have an n8n account to practice. The form and the two actions are ready when you start.
If vs Switch in n8n: when to use which
Use the If node when the question has two answers. It has exactly two outputs, true and false, and every item takes one or the other, never both. You can add more conditions with Add condition and combine them with AND or OR.
Use the Switch node when you need three or more routes. In Rules mode each routing rule gets its own output, numbered 0, 1, 2 until you switch on Rename Output and give it a name. The Switch checks the rules in order and sends an item to the first one that matches, unless you turn on the Send data to all matching outputs option. Without a fallback, items that match no rule are simply dropped. Setting Fallback Output to Extra Output gives them their own output, called Fallback, so nothing disappears without you noticing.
Numbers, text and Convert types where required
Every condition compares value1 with value2 using a comparison from one of six groups: String, Number, Date & Time, Boolean, Array and Object. Pick the group that matches your data. A budget is a number, so it uses Number, is greater than. A service name is text, so it uses String, is equal to.
An n8n form sends a Number field as a real number, so the rule works as it is. Data from other places, such as a webhook, sometimes sends numbers as text. If a condition complains about the type, switch on Convert types where required and n8n will convert the value before it compares.
How to use this in your business
Send high-value leads to a salesperson and the rest to a newsletter list. Flag invoices over a set amount for approval. Route support messages by topic to the right person, with a fallback inbox for anything unexpected. Start with an If, reach for a Switch when the routes grow, and always add a fallback.
How the interactive lesson works
Every step is shown first on the left, in the Watch panel, with a short voice-over. Then you do it yourself on the right, in Your turn, on a practice copy of n8n and its test form. If you get stuck, press Do it for me and the step is done for you. No email is sent and nothing goes online, so you can make mistakes freely, then build it for real.
Try it yourself, free
Reading the steps is a start. Doing them is how it sticks. The interactive module walks you through every click in a practice copy of n8n, checks each step, and never touches your real accounts.
Start “n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules”Screenshots




Frequently asked questions
- How do I add a node in n8n?
- Click the plus after a node, search for the one you want, such as if, and pick it. To put a node between two others, point to the line between them and click its plus, and n8n places the new node on that line.
- What is a node in n8n?
- A node is one step in an n8n workflow, such as a form trigger, an If, a Switch or a Gmail step. Each node takes the items from the step before it, does one job and passes items on to the next.
- What does the If node do in n8n?
- It checks one or more conditions for each item and sends the item to its true output when they pass and to its false output when they do not. Each output can lead to different steps.
- What is the difference between the If node and the Switch node?
- The If node has two outputs, true and false. The Switch node can have as many outputs as you need, one per routing rule, plus an optional fallback output for items that match no rule.
- What happens to items that match no rule in a Switch node?
- By default they are ignored. Add the Fallback Output option and set it to Extra Output to send them to a separate Fallback output, or to one of your existing outputs.
- How do I add a fallback output to the n8n Switch node?
- In the Switch node, click Add option, choose Fallback Output and set it to Extra Output. Items that match no rule then leave through a separate Fallback output. More in fallback output.
- Is this course really free?
- Yes. Stepthrough is completely free, and the practice copy needs no accounts. To build it for real you need your own n8n and Google accounts, and some of those cost money once you use them for real work.
More in n8n Automation Toolkit
n8n: What Is n8n? Build Your First WorkflowWhat n8n is and how it thinks, then your first workflow: a client inquiry form that catches every request and writes a one-line summary. No code, no accounts to connect.
Free · Live ~8 min Beginner
How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AIAI workflow automation for beginners: a form catches each client inquiry, an AI step sorts it and drafts the reply, and an If rule flags the urgent ones. Real n8n, free…
Free · Live ~12 min Beginner
n8n: Items, JSON and Expressions, Explained by DoingSee how n8n holds data: pin five fake invoices, read them as items, Table and JSON, then write one reminder per invoice and a late fee with drag-and-drop expressions.
Free · Live ~9 min Beginner
n8n: Run a Workflow on a Schedule (Every Monday at 8am)Use the n8n Schedule Trigger to run a workflow by itself: every Monday at 8am, a timesheet reminder. Set the interval, test it now, and check the time zone.
Free · Live ~6 min Beginner
n8n: Send Form Answers Straight to Google SheetsBuild a consultation request form in n8n (required fields, email, dropdown), test it, and add every answer as a new row in Google Sheets. No webhook, no form tool to…
Free · Live ~10 min Beginner
n8n: Summarize Customer Emails with OpenAIYour first AI step in n8n: send each customer email to OpenAI with one prompt and get a one-line summary plus the next step. No agent needed, about a cent of API use.
Free · Live ~9 min Beginner
All 28 modules in n8n Automation Toolkit
More n8n tutorials
How to Create an AI Agent in n8n That Saves Ideas to Google SheetsBuild an AI agent for BrightPath Marketing that generates social media post ideas and saves them to Google Sheets — chat trigger, AI Agent, system prompt, model…
Free · Live ~12 min Intermediate
How to Build in Lovable: A Web App with an n8n AI BackendBuild a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together.
Free · Live ~15 min Advanced
How to Do OCR in n8n: Read Receipt Photos into Google Sheets with AIDrop a photo of a receipt into an n8n chat. An AI agent reads it, pulls out the date, vendor and amount, picks a category, and adds a row to Google Sheets.
Free · Live ~12 min Intermediate
n8n AI Email Responder: Draft Gmail Replies AutomaticallyBuild an n8n agent that watches your Gmail, reads each new customer email, and writes a reply as a draft in the same thread, ready for you to check and send.
Free · Live ~12 min Intermediate
How to Make an n8n Workflow That Emails Each Tech Their Jobs from SheetsEvery morning at 7, n8n reads a plumbing company's jobs sheet, skips anything not assigned yet, and emails each job to the tech it's assigned to — customer, address…
Free · Live ~10 min Intermediate
Gmail AI Triage: Auto-Label Every Email and Draft RepliesBuild an n8n workflow that reads each new email, sorts it as a lead, a client or an invoice with a Text Classifier, adds the matching Gmail label, and drafts a reply to…
Free · Live ~18 min Advanced
From the blog
Visual guide
This lesson’s key ideas as quick visual guides: swipe through the slides, or read the same guide as text.
n8n If and Switch Nodes: Route Requests by RulesA visual guide to n8n If and Switch nodes: split big jobs from small ones with one condition, then route by service with named outputs and a fallback.
Step-by-step guide 7 slides
Terms in this lesson
Plain-English definitions, each with an example from a free lesson.
Related prompts
- Request routing rules prompt: Write down who should get which request before you build it in n8n: the condition for each route, the exit names and a fallback…