Simple if-else node

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

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

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

You can find your run history here: https://www.gumloop.com/history

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

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

Subflow Tutorial: https://vimeo.com/1052111235/cb7e3a446b
Subflow Docs: https://docs.gumloop.com/core-concepts/subflows

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

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
Branch A (True): https://www.gumloop.com/pipeline?workbook_id=mSss5soBM6s6H1gZKiWM7L&tab=1

Does this make sense?

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 :slight_smile:

An alternative approach would be to use a Combine Text node, eg: https://www.gumloop.com/pipeline?workbook_id=6JPJcSStcXzoQgqu24iei3

Subflow is just a cleaner/robust solution.

Thank you, this works better for me! :slight_smile:

1 Like

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