# n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules

> n8n Switch node fallback output docs in plain steps: add an If, then a Switch with named rules and a Fallback output so no item is dropped. Free lesson.

Source: https://ynteractive.com/content/n8n-if-and-switch-node-tutorial · Updated 2026-11-17 · Free from Stepthrough (https://ynteractive.com)

## Practice it step by step

[Start the free practice](https://ynteractive.com/modules/n8n-if-switch)

[Take the free module: why it matters, practice and a quick check →](https://ynteractive.com/courses/n8n-jump-start/5)

You do every step yourself in a practice copy of n8n. It checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, about 10 minutes, and nothing touches your real accounts. [Open full screen](https://ynteractive.com/modules/n8n-if-switch)

Quick answer

In the [Switch node](https://ynteractive.com/content/glossary#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](https://ynteractive.com/content/glossary#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 November 17, 2026 · Last checked November 17, 2026

Free · Live now · [n8n Automation Toolkit](https://ynteractive.com/content/course/n8n-automation-toolkit) · [n8n](https://ynteractive.com/content/tool/n8n) · Gmail · Google Sheets · ~10 min · 40 steps · Beginner

Updated November 17, 2026. Built against the tool’s current screens and checked step by step. [How we check this lesson](https://ynteractive.com/content/about#how-we-check)

Real work needs rules: big jobs go to the owner, small ones go in a log, emergencies skip the line. In [n8n](https://ynteractive.com/content/tool/n8n), two nodes handle that. The [If node](https://ynteractive.com/content/glossary#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](https://ynteractive.com/modules/n8n-if-switch), watch the video, read the guide with screenshots |

### The 5 parts, in short

1. Send a test request: Run the workflow, Fill in the test form, Pick a service, Enter a budget, and 2 more steps.
2. Add an If: Add the next step, Search for If, Pick If, Drag in the budget, and 6 more steps.
3. Connect true and false: Connect true, Connect false.
4. Add a Switch: Add a step before If, Search for Switch, Pick Switch, First rule: the service, and 14 more steps.
5. Wire it up and publish: Connect Emergency, Connect Fallback, Publish, Publish it.

**Start here first:** [n8n: What Is n8n? Build Your First Workflow](https://ynteractive.com/content/n8n-tutorial-for-beginners-first-workflow) (module 1 of n8n Automation Toolkit)

**In the course:** Part 9 · n8n Automation Toolkit (Module 84 of the [full course](https://ynteractive.com/content/course))

**Part of:** [n8n Jump Start](https://ynteractive.com/content/paths/n8n-jump-start) (step 4 of 27). Next up: [n8n: Keep Only the Rows That Matter with Filter and Edit Fields](https://ynteractive.com/content/n8n-filter-node-edit-fields-set)

**Part of:** [n8n for Beginners: Your First Automations](https://ynteractive.com/content/paths/n8n-beginner) (step 11 of 12). Next up: [n8n: Summarize Customer Emails with OpenAI](https://ynteractive.com/content/n8n-openai-summarize-emails)

## 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.

![The n8n workflow editor in Stepthrough’s practice copy, step 1 of 40 (Run the workflow): the cursor is on “Execute”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-01.webp)

**Step 1 of 40.** This workflow has a form trigger and two actions that aren't connected yet. To get some real data to route, click **Execute** at the bottom of the canvas. It runs the whole workflow.

#### Step 2: Fill in the test form

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

![The Lovable app preview in Stepthrough’s practice copy, step 2 of 40 (Fill in the test form): the nora castillo is filled in (“Nora Castillo”).](https://ynteractive.com/content/guide/n8n-if-switch/step-02.webp)

**Step 2 of 40.** n8n opened the test form. Fill it in like a customer: type a name, for example **Nora Castillo**.

#### Step 3: Pick a service

For the service, choose Installation.

![The Lovable app preview in Stepthrough’s practice copy, step 3 of 40 (Pick a service): the cursor is on “Service”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-03.webp)

**Step 3 of 40.** Under **Service**, choose **Installation**.

#### Step 4: Enter a budget

And a budget of 2,500 dollars.

![The Lovable app preview in Stepthrough’s practice copy, step 4 of 40 (Enter a budget): the budget is filled in (“2500”).](https://ynteractive.com/content/guide/n8n-if-switch/step-04.webp)

**Step 4 of 40.** In **Budget**, type **2500**.

#### Step 5: Submit

![The Lovable app preview in Stepthrough’s practice copy, step 5 of 40 (Submit): the cursor is on “Submit”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-05.webp)

**Step 5 of 40.** Click **Submit**.

#### Step 6: Back to n8n

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

![The Lovable app preview in Stepthrough’s practice copy, step 6 of 40 (Back to n8n): the cursor is on “n8n”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-06.webp)

**Step 6 of 40.** Go back to the **n8n** tab.

### 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.

![The n8n workflow canvas in Stepthrough’s practice copy, step 7 of 40 (Add the next step): the cursor is on “+”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-07.webp)

**Step 7 of 40.** Click the **+** on the right of **On form submission**.

#### Step 8: Search for If

Search for if.

![The n8n node list in Stepthrough’s practice copy, step 8 of 40 (Search for If): the search nodes... is filled in (“if”).](https://ynteractive.com/content/guide/n8n-if-switch/step-08.webp)

**Step 8 of 40.** In **Search nodes...**, type **if**.

#### Step 9: Pick If

It sends each item down one of two branches: true, or false.

![The n8n node list in Stepthrough’s practice copy, step 9 of 40 (Pick If): the cursor is on “If”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-09.webp)

**Step 9 of 40.** Choose **If**: *Route items to different branches (true/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.

![The n8n node list in Stepthrough’s practice copy, step 10 of 40 (Drag in the budget): the cursor is on “Conditions”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-10.webp)

**Step 10 of 40.** Under **Conditions**, the first box is **value1**. Drag **Budget** from the input on the left into it. (Here, click **Budget**.)

#### Step 11: Open the comparison

![An n8n node’s settings window in Stepthrough’s practice copy, step 11 of 40 (Open the comparison): the cursor is on “is equal to”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-11.webp)

**Step 11 of 40.** Open the comparison drop-down, which now says **is equal to**.

#### Step 12: Is greater than

![A dropdown menu in n8n in Stepthrough’s practice copy, step 12 of 40 (Is greater than): the cursor is on “Number”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-12.webp)

**Step 12 of 40.** Point to **Number** and choose **is greater than**.

#### Step 13: Set the limit

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

![An n8n node’s settings window in Stepthrough’s practice copy, step 13 of 40 (Set the limit): the value2 is filled in (“1000”).](https://ynteractive.com/content/guide/n8n-if-switch/step-13.webp)

**Step 13 of 40.** In **value2** (n8n fills in 0 for numbers), replace it with **1000**.

#### Step 14: Execute step

Try it on the test request.

![An n8n node’s settings window in Stepthrough’s practice copy, step 14 of 40 (Execute step): the cursor is on “Execute step”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-14.webp)

**Step 14 of 40.** Click **Execute step** to try the rule 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.

![An n8n node’s settings window in Stepthrough’s practice copy, step 15 of 40 (Check the false branch): the cursor is on “True Branch (1 item)”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-15.webp)

**Step 15 of 40.** The request went to **True Branch (1 item)**: 2500 is more than 1000. Click **False Branch** to see the other side.

#### Step 16: Close the node

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

![An n8n node’s settings window in Stepthrough’s practice copy, step 16 of 40 (Close the node): the cursor is on “×”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-16.webp)

**Step 16 of 40.** Nothing went down the false branch this time. Close the node with the **×** at the top right.

### Part 3: Connect true and false

#### Step 17: Connect true

The If node has two outputs, true and false.

![The n8n workflow canvas in Stepthrough’s practice copy, step 17 of 40 (Connect true): the cursor is on “true”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-17.webp)

**Step 17 of 40.** The If node has two outputs, **true** and **false**. Drag from the **true** dot to **Send a message**. (Here, click the dot.)

#### Step 18: Connect false

Big jobs now email the owner. Everything else goes in the log.

![The n8n workflow canvas in Stepthrough’s practice copy, step 18 of 40 (Connect false): the cursor is on “false”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-18.webp)

**Step 18 of 40.** Drag from the **false** dot to **Append row in sheet**.

### 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.

![The n8n workflow canvas in Stepthrough’s practice copy, step 19 of 40 (Add a step before If): the cursor is on “If”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-19.webp)

**Step 19 of 40.** Now the owner wants emergencies sent straight to them, whatever the budget. Point to the line between the form and **If**, and click its **+** (**Add node**).

#### Step 20: Search for Switch

Search for switch.

![The n8n node list in Stepthrough’s practice copy, step 20 of 40 (Search for Switch): the switch is filled in (“switch”).](https://ynteractive.com/content/guide/n8n-if-switch/step-20.webp)

**Step 20 of 40.** Type **switch**.

#### Step 21: Pick Switch

It lands on that line, so the form now feeds the Switch, and the Switch feeds the If.

![The n8n node list in Stepthrough’s practice copy, step 21 of 40 (Pick Switch): the cursor is on “Switch”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-21.webp)

**Step 21 of 40.** Choose **Switch**: *Route items depending on defined expression or rules*.

#### 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.

![The n8n node list in Stepthrough’s practice copy, step 22 of 40 (First rule: the service): the cursor is on “Mode”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-22.webp)

**Step 22 of 40.** **Mode** is **Rules**: one rule per output. In the first rule, drag **Service** into **value1**. (Here, click **Service**.)

#### Step 23: Repair

In value 2, type Repair.

![An n8n node’s settings window in Stepthrough’s practice copy, step 23 of 40 (Repair): the value2 is filled in (“Repair”).](https://ynteractive.com/content/guide/n8n-if-switch/step-23.webp)

**Step 23 of 40.** In **value2**, type **Repair**.

#### Step 24: Rename Output

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

![An n8n node’s settings window in Stepthrough’s practice copy, step 24 of 40 (Rename Output): the cursor is on “Rename Output”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-24.webp)

**Step 24 of 40.** Outputs are numbered 0, 1, 2 until you name them. Switch on **Rename Output**.

#### Step 25: Name it

Name it Repair.

![An n8n node’s settings window in Stepthrough’s practice copy, step 25 of 40 (Name it): the output name is filled in (“Repair”).](https://ynteractive.com/content/guide/n8n-if-switch/step-25.webp)

**Step 25 of 40.** In **Output Name**, type **Repair**.

#### Step 26: Add Routing Rule

![An n8n node’s settings window in Stepthrough’s practice copy, step 26 of 40 (Add Routing Rule): the cursor is on “Add Routing Rule”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-26.webp)

**Step 26 of 40.** Click **Add Routing Rule**.

#### Step 27: Second rule

![An n8n node’s settings window in Stepthrough’s practice copy, step 27 of 40 (Second rule): the cursor is on “Service”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-27.webp)

**Step 27 of 40.** Drag **Service** into the new rule's **value1**. (Here, click **Service**.)

#### Step 28: Emergency

This time, type Emergency.

![An n8n node’s settings window in Stepthrough’s practice copy, step 28 of 40 (Emergency): the value2 is filled in (“Emergency”).](https://ynteractive.com/content/guide/n8n-if-switch/step-28.webp)

**Step 28 of 40.** In **value2**, type **Emergency**.

#### Step 29: Rename Output

![An n8n node’s settings window in Stepthrough’s practice copy, step 29 of 40 (Rename Output): the cursor is on “Rename Output”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-29.webp)

**Step 29 of 40.** Switch on **Rename Output**.

#### Step 30: Name it

And name it Emergency.

![An n8n node’s settings window in Stepthrough’s practice copy, step 30 of 40 (Name it): the output name is filled in (“Emergency”).](https://ynteractive.com/content/guide/n8n-if-switch/step-30.webp)

**Step 30 of 40.** In **Output Name**, type **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.

![An n8n node’s settings window in Stepthrough’s practice copy, step 31 of 40 (Add option): the cursor is on “Options”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-31.webp)

**Step 31 of 40.** What about installations and anything else? Under **Options**, click **Add option**.

#### Step 32: Fallback Output

![A dropdown menu in n8n in Stepthrough’s practice copy, step 32 of 40 (Fallback Output): the cursor is on “Fallback Output”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-32.webp)

**Step 32 of 40.** Choose **Fallback Output**.

#### Step 33: Open Fallback Output

It starts at None, which means those items are ignored.

![An n8n node’s settings window in Stepthrough’s practice copy, step 33 of 40 (Open Fallback Output): the cursor is on “None (default)”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-33.webp)

**Step 33 of 40.** It starts at **None (default)**: items that match no rule are ignored. Open the drop-down.

#### Step 34: Extra Output

Now anything that matches no rule gets its own output, called Fallback.

![A dropdown menu in n8n in Stepthrough’s practice copy, step 34 of 40 (Extra Output): the cursor is on “Extra Output”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-34.webp)

**Step 34 of 40.** Choose **Extra Output**: *Items will be sent to the extra, separate, output*.

#### Step 35: Execute step

![An n8n node’s settings window in Stepthrough’s practice copy, step 35 of 40 (Execute step): the cursor is on “Execute step”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-35.webp)

**Step 35 of 40.** Click **Execute step** to route the test request.

#### 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.

![An n8n node’s settings window in Stepthrough’s practice copy, step 36 of 40 (Close the node): the cursor is on “Fallback (1 item)”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-36.webp)

**Step 36 of 40.** The Installation request matched neither rule, so it landed in **Fallback (1 item)**. Close the node with the **×**.

### 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.

![The n8n workflow canvas in Stepthrough’s practice copy, step 37 of 40 (Connect Emergency): the cursor is on “If”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-37.webp)

**Step 37 of 40.** Repair is already connected to **If**, so repairs still get the budget check. Drag from **Emergency** to **Send a message**. (Here, click the dot.)

#### Step 38: Connect Fallback

![The n8n workflow canvas in Stepthrough’s practice copy, step 38 of 40 (Connect Fallback): the cursor is on “Fallback”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-38.webp)

**Step 38 of 40.** Drag from **Fallback** to **Append row in sheet**.

#### Step 39: Publish

Every road now leads somewhere.

![The n8n workflow editor in Stepthrough’s practice copy, step 39 of 40 (Publish): the cursor is on “Publish”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-39.webp)

**Step 39 of 40.** Every route has somewhere to go. Click **Publish**.

#### 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.

![The n8n Publish dialog in Stepthrough’s practice copy, step 40 of 40 (Publish it): the cursor is on “Version name”, highlighted.](https://ynteractive.com/content/guide/n8n-if-switch/step-40.webp)

**Step 40 of 40.** Keep the **Version name** n8n suggests and click **Publish**.

**Part of these free courses:** [n8n Jump Start](https://ynteractive.com/courses/n8n-jump-start), [n8n for Beginners: Your First Automations](https://ynteractive.com/courses/n8n-beginner), [AI Automation with n8n: From First Workflow to AI Agents](https://ynteractive.com/courses/ai-automation-with-n8n)

### 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 step](https://ynteractive.com/modules/n8n-if-switch?after=guide)

## n8n 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.

3:11 · 5 chapters · 40 steps · narrated with the lesson’s own voice-over

### Chapters

Click a chapter to jump the video there.

1. [0:00 Send a test request](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=0#watch)
2. [0:28 Add an If](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=28#watch)
3. [1:19 Connect true and false](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=79#watch)
4. [1:31 Add a Switch](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=91#watch)
5. [2:45 Wire it up and publish](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=165#watch)

### 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 step](https://ynteractive.com/modules/n8n-if-switch?after=video)

### Full transcript

#### Send a test request

[0:00](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=0#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=12#watch) The test version of the form just opened. Fill it in like a customer would. Type a name.

[0:17](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=17#watch) For the service, choose Installation.

[0:19](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=19#watch) And a budget of 2,500 dollars. Type 2500.

[0:22](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=22#watch) Click Submit.

[0:23](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=23#watch) Now go back to n8n. The form step has a green check: the request came in.

#### Add an If

[0:28](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=28#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=38#watch) Search for if.

[0:39](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=39#watch) Choose If. It sends each item down one of two branches: true, or false.

[0:44](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=44#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=54#watch) Now open the comparison drop-down.

[0:56](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=56#watch) Point to Number, and choose is greater than.

[0:59](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=59#watch) In value 2, type 1000. So the rule is: budget is greater than 1,000.

[1:04](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=64#watch) Try it on the test request. Click Execute step.

[1:07](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=67#watch) The output shows True Branch, 1 item, because 2,500 is more than 1,000. Click False Branch.

[1:13](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=73#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=79#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=85#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=91#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=103#watch) Search for switch.

[1:44](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=104#watch) Choose Switch. It lands on that line, so the form now feeds the Switch, and the Switch feeds the If.

[1:50](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=110#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=120#watch) In value 2, type Repair.

[2:02](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=122#watch) Outputs are just numbered 0, 1, 2 until you name them. Switch on Rename Output.

[2:07](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=127#watch) Name it Repair.

[2:08](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=128#watch) Click Add Routing Rule for the second output.

[2:11](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=131#watch) Drag Service into the new rule.

[2:13](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=133#watch) This time, type Emergency.

[2:14](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=134#watch) Switch on Rename Output.

[2:16](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=136#watch) And name it Emergency.

[2:18](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=138#watch) What about installations, or anything else? By default, items that match no rule are dropped. Under Options, click Add option.

[2:24](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=144#watch) Choose Fallback Output.

[2:26](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=146#watch) It starts at None, which means those items are ignored. Open it.

[2:29](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=149#watch) Choose Extra Output. Now anything that matches no rule gets its own output, called Fallback.

[2:35](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=155#watch) Click Execute step to route the test request.

[2:37](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=157#watch) 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](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=164#watch) Repair is already connected to the If, so repairs still get the budget check. Drag from Emergency to Send a message.

[2:50](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=170#watch) And drag from Fallback to Append row in sheet, so installations and anything else land in the log.

[2:56](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=176#watch) Every road now leads somewhere. Click Publish.

[2:58](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial?t=178#watch) 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](https://ynteractive.com/content/lovable-n8n-web-app-ai-backend), 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”](https://ynteractive.com/modules/n8n-if-switch)

[All free Stepthrough videos](https://ynteractive.com/content/videos)

## 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](https://ynteractive.com/content/glossary#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.

[Start this module free](https://ynteractive.com/modules/n8n-if-switch)

- Previous in n8n Automation Toolkit: [How to Connect Google Sheets to ChatGPT with an n8n AI Agent (Template 7449)](https://ynteractive.com/content/n8n-talk-to-google-sheets-chatgpt-ai-agent)
- Next in n8n Automation Toolkit: [Get Your Daily Revenue Total by Email, Automatically, using n8n](https://ynteractive.com/content/n8n-schedule-trigger-google-sheets-daily-report)

## More in n8n Automation Toolkit

- [n8n: What Is n8n? Build Your First Workflow](https://ynteractive.com/content/n8n-tutorial-for-beginners-first-workflow): What 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.
- [How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AI](https://ynteractive.com/content/ai-workflow-automation-for-beginners): AI 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…
- [n8n: Items, JSON and Expressions, Explained by Doing](https://ynteractive.com/content/n8n-items-json-expressions-tutorial): See 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.
- [n8n: Run a Workflow on a Schedule (Every Monday at 8am)](https://ynteractive.com/content/n8n-schedule-trigger-tutorial): 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.
- [n8n: Send Form Answers Straight to Google Sheets](https://ynteractive.com/content/n8n-form-to-google-sheets): Build 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…
- [n8n: Summarize Customer Emails with OpenAI](https://ynteractive.com/content/n8n-openai-summarize-emails): Your 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.

[All 28 modules in n8n Automation Toolkit](https://ynteractive.com/content/course/n8n-automation-toolkit)

## More n8n tutorials

- [How to Create an AI Agent in n8n That Saves Ideas to Google Sheets](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets): Build 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…
- [How to Build in Lovable: A Web App with an n8n AI Backend](https://ynteractive.com/content/lovable-n8n-web-app-ai-backend): Build 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.
- [How to Do OCR in n8n: Read Receipt Photos into Google Sheets with AI](https://ynteractive.com/content/ai-receipt-extractor-n8n-google-sheets): Drop 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.
- [n8n AI Email Responder: Draft Gmail Replies Automatically](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n): Build 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.
- [How to Make an n8n Workflow That Emails Each Tech Their Jobs from Sheets](https://ynteractive.com/content/n8n-daily-job-alerts-google-sheets-gmail): Every 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…
- [Gmail AI Triage: Auto-Label Every Email and Draft Replies](https://ynteractive.com/content/gmail-ai-triage-labels-drafts-n8n): Build 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…

## From the blog

- [How to Route Client Requests: AI Form, Agent or Rules](https://ynteractive.com/content/blog/route-client-requests-with-ai-form-agent-or-rules): Route client requests with AI: collect clean details with a form, route by rules with n8n If and Switch, test, publish, and keep an agent for questions.

[All blog posts](https://ynteractive.com/content/blog)

## Visual guide

This lesson’s key ideas as quick visual guides: swipe through the slides, or read the same guide as text.


[All visual guides](https://ynteractive.com/content/visual)

## Terms in this lesson

Plain-English definitions, each with an example from a free lesson.

[Fallback output](https://ynteractive.com/content/glossary#fallback-output) · [IF node](https://ynteractive.com/content/glossary#if-node) · [Merge node](https://ynteractive.com/content/glossary#merge-node) · [Switch node](https://ynteractive.com/content/glossary#switch-node) · [True and false branches](https://ynteractive.com/content/glossary#true-and-false-branches) · [Execute step](https://ynteractive.com/content/glossary/execute-step) · [Pinned data](https://ynteractive.com/content/glossary/pinned-data) · n8n Form Trigger

[The full AI glossary](https://ynteractive.com/content/glossary)

## Related prompts


[All free prompt templates](https://ynteractive.com/content/prompts)

## More terms on this topic

[Interactive voice response (IVR)](https://ynteractive.com/content/glossary#interactive-voice-response)

## Browse related tutorials

[n8n Automation Toolkit (28)](https://ynteractive.com/content/course/n8n-automation-toolkit) · [n8n tutorials (59)](https://ynteractive.com/content/tool/n8n)
