# Simple if-else node

**URL:** <https://forum.gumloop.com/t/simple-if-else-node/1833>\
**Category:** Get Help\
**Tags:** General\
**Created:** [March 9, 2025, 6:01pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833 "2025-03-09T18:01:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinlg](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kevinlg](https://forum.gumloop.com/u/kevinlg)\
**Post date:** [March 9, 2025, 6:01pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/1 "2025-03-09T18:01:30Z")

</div>

Hi everyone,

How can I have a simple if-Else node?

Like if input=“xyz” then goes to branch “true” else goes to branch “false”. Right now it passes the information, but I don’t need that. I just want to route the flow.

I ask the Gummie agent and it recommended to use Ask AI instead, which I don’t find very efficient solution for this simple case.

Thanks,  
Kevin

---

<div class="post-metadata">

**Author:** ![Gumloop\_Bot](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/gumloop_bot/32/504_2.png) [@Gumloop\_Bot](https://forum.gumloop.com/u/Gumloop_Bot)\
**Post date:** [March 9, 2025, 6:01pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/2 "2025-03-09T18:01:33Z")

</div>

Hey @kevinlg! If you’re reporting an issue with a flow or an error in a run, please include the **run link** and make sure it’s **shareable** so we can take a look.

1. **Find your run link** on the history page. Format: `https://www.gumloop.com/pipeline?run_id={your_run_id}&workbook_id={workbook_id}`

2. **Make it shareable** by clicking **“Share”** → ‘Anyone with the link can view’ in the top-left corner of the flow screen.  
 ![GIF guide](https://canada1.discourse-cdn.com/flex027/uploads/gumloop/original/1X/92c00c612fd65b861e706dd1b5eec5ec61677835.gif)

3. **Provide details** about the issue—more context helps us troubleshoot faster.

You can find your run history here: [https://www.gumloop.com/history](https://www.gumloop.com/history)

---

<div class="post-metadata">

**Author:** ![Wasay-Gumloop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/wasay-gumloop/32/69_2.png) [@Wasay-Gumloop](https://forum.gumloop.com/u/Wasay-Gumloop)\
**Post date:** [March 9, 2025, 6:25pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/3 "2025-03-09T18:25:13Z")

</div>

Hey @kevinlg - You can create subflows here for each branch and then route the flow based on IF-ELSE outcome. Here’s an example: [https://www.gumloop.com/pipeline?workbook\_id=mSss5soBM6s6H1gZKiWM7L](https://www.gumloop.com/pipeline?workbook_id=mSss5soBM6s6H1gZKiWM7L)

Let me know if this is what you were looking for.

**Subflow Tutorial:** [https://vimeo.com/1052111235/cb7e3a446b](https://vimeo.com/1052111235/cb7e3a446b)  
**Subflow Docs:** [https://docs.gumloop.com/core-concepts/subflows](https://docs.gumloop.com/core-concepts/subflows)

---

<div class="post-metadata">

**Author:** ![kevinlg](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kevinlg](https://forum.gumloop.com/u/kevinlg)\
**Post date:** [March 9, 2025, 7:01pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/4 "2025-03-09T19:01:30Z")

</div>

Hi Wasay,

Thank you - I appreciate the solution.

It would work, but I’m already in a flow with many subflows, so it’s a bit convoluted.

I added more nodes to show what I’m trying to achieve. I would like to read one Google Docs IF the input has a specific value and Else read another doc.

Unfortunately, with the current IF-Else node, it’s passing the value “xyz” as the file link, while I would like to indicate it myself.

Thanks,  
Kevin

---

<div class="post-metadata">

**Author:** ![Wasay-Gumloop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/wasay-gumloop/32/69_2.png) [@Wasay-Gumloop](https://forum.gumloop.com/u/Wasay-Gumloop)\
**Post date:** [March 9, 2025, 9:20pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/5 "2025-03-09T21:20:07Z")

</div>

> [@kevinlg](#):
>
> Unfortunately, with the current IF-Else node, it’s passing the value “xyz” as the file link, while I would like to indicate it myself.

You don’t necessarily have to use the output from the IF-ELSE as the input to the doc reader. For eg: In the example I shared above, the IF-ELSE only indicates what branch (ie. subflow) to go to and within that subflow you can have a doc that reads the specific link.

Main flow: [https://www.gumloop.com/pipeline?workbook\_id=mSss5soBM6s6H1gZKiWM7L](https://www.gumloop.com/pipeline?workbook_id=mSss5soBM6s6H1gZKiWM7L)  
Branch A (True): [https://www.gumloop.com/pipeline?workbook\_id=mSss5soBM6s6H1gZKiWM7L&tab=1](https://www.gumloop.com/pipeline?workbook_id=mSss5soBM6s6H1gZKiWM7L&tab=1)

Does this make sense?

---

<div class="post-metadata">

**Author:** ![kevinlg](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kevinlg](https://forum.gumloop.com/u/kevinlg)\
**Post date:** [March 9, 2025, 9:58pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/6 "2025-03-09T21:58:47Z")

</div>

Thank you! Yes that will work for me.

I would just prefer to have a simpler IF-Else node available to avoid having to use another subflow.

My flow already has 6 subflows, so it’s going to get a bit messy if I need to add 2 subflows (true and false) for each of them 🙂

---

<div class="post-metadata">

**Author:** ![Wasay-Gumloop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/wasay-gumloop/32/69_2.png) [@Wasay-Gumloop](https://forum.gumloop.com/u/Wasay-Gumloop)\
**Post date:** [March 9, 2025, 11:01pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/7 "2025-03-09T23:01:14Z")

</div>

An alternative approach would be to use a `Combine Text` node, eg: [https://www.gumloop.com/pipeline?workbook\_id=6JPJcSStcXzoQgqu24iei3](https://www.gumloop.com/pipeline?workbook_id=6JPJcSStcXzoQgqu24iei3)

Subflow is just a cleaner/robust solution.

---

<div class="post-metadata">

**Author:** ![kevinlg](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kevinlg](https://forum.gumloop.com/u/kevinlg)\
**Post date:** [March 9, 2025, 11:49pm UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/8 "2025-03-09T23:49:11Z")

</div>

Thank you, this works better for me! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/gumloop/original/1X/d02ff8efcde6ac5d3ac8aa0376137d5f804da549.png) [@system](https://forum.gumloop.com/u/system)\
**Post date:** [March 10, 2025, 12:49am UTC](https://forum.gumloop.com/t/simple-if-else-node/1833/9 "2025-03-10T00:49:22Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
