> ## Documentation Index
> Fetch the complete documentation index at: https://docs.landerlab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# If Node (Yes/No Branching) Guide

> Set up the If node in LanderLab workflows to route leads down a Yes or No path by conditions. Learn fields, operators, AND/OR logic, and condition groups.

The **If** node splits your workflow into two paths based on conditions. Leads that match the conditions follow the **Yes** branch; everyone else follows the **No** branch. Use it when failing leads shouldn't stop - they should just go somewhere different.

If and Filter build conditions the exact same way. The difference is what happens to a lead that doesn't match: a filter stops it, while an If node sends it down the **No** path so you can still act on it.

<Note>
  Reach for **If** when you have two outcomes ("do this, otherwise do that"). Reach for **Filter** when you only want to keep matching leads and drop the rest. For more than two outcomes, use **Switch**.
</Note>

## Add the If node

If lives under the **Internal** group in the node menu.

<Frame caption="The node menu with If under the Internal group.">
  <img src="https://mintcdn.com/landerlab-babdc23f/9hihqqyvuqaqWYwq/images/Screenshot-2026-06-23-at-12.03.32-PM.png?fit=max&auto=format&n=9hihqqyvuqaqWYwq&q=85&s=77c9aab6ab897deb912681de0b83c366" alt="Screenshot 2026 06 23 At 12 03 32 PM" width="373" height="626" data-path="images/Screenshot-2026-06-23-at-12.03.32-PM.png" />
</Frame>

<Steps>
  <Step title="Open the node menu">
    Click the **+** below the node where you want the branch to happen (usually right after the trigger).
  </Step>

  <Step title="Select If">
    Under **Internal**, click **If**. The node is added to the canvas and its settings open on the right.
  </Step>
</Steps>

## The Yes and No branches

Once added, the If node appears on the canvas with two paths below it: a green **Yes** branch and a red **No** branch. Each branch has its own **+** button so you can build a different sequence of nodes on each side.

<Frame caption="An If node splitting the workflow into Yes and No branches.">
  <img src="https://mintcdn.com/landerlab-babdc23f/9hihqqyvuqaqWYwq/images/Screenshot-2026-06-23-at-12.03.53-PM.png?fit=max&auto=format&n=9hihqqyvuqaqWYwq&q=85&s=e0ad506d6ecc1741d0d8235fe0c56c4f" alt="Screenshot 2026 06 23 At 12 03 53 PM" width="1356" height="609" data-path="images/Screenshot-2026-06-23-at-12.03.53-PM.png" />
</Frame>

* **Yes** - runs for leads that match your conditions.
* **No** - runs for leads that don't.

You can leave a branch empty if a lead simply ends there, or add actions to one or both sides.

## Configure the conditions

Selecting the node opens its settings. The header confirms what it does: *Route between Yes / No by conditions.*

### General

| Setting  | Description                                                                                                                                 |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name** | The label for this node on the canvas. Rename it to describe the decision (for example, `Is a paid plan?`) so the branch is easy to follow. |

### Conditions

The **Conditions** section defines what counts as a **Yes**. If a lead matches, it takes the Yes branch; if not, it takes the No branch.

Click **Add Condition Group** to add your first condition. Each condition has three parts, read left to right:

<Frame caption="A single condition: field, operator, and value.">
  <img src="https://mintcdn.com/landerlab-babdc23f/9hihqqyvuqaqWYwq/images/Screenshot-2026-06-23-at-12.04.03-PM.png?fit=max&auto=format&n=9hihqqyvuqaqWYwq&q=85&s=7f02c61c78c0fc73a0cfdde584783535" alt="Screenshot 2026 06 23 At 12 04 03 PM" width="380" height="444" data-path="images/Screenshot-2026-06-23-at-12.04.03-PM.png" />
</Frame>

<Steps>
  <Step title="Field" icon="1">
    The first dropdown lists the fields captured on your connected landing page - for example, **email**. Pick the field to check.
  </Step>

  <Step title="Operator" icon="2">
    The second dropdown sets how the field is compared to your value - for example, **is equal to**, **is not equal to**, **contains**, **does not contain**, **greater than**, or **less than**.
  </Step>

  <Step title="Value" icon="3">
    The third field is what you compare against. Type the value to check for.
  </Step>
</Steps>

<Tip>
  The available fields come straight from the landing page connected to your trigger. If a field you expect is missing, check that the page is capturing it and is connected to the trigger.
</Tip>

## Combine conditions with AND / OR

You can add more than one condition. Click **Add Condition** inside a group, and an **AND / OR** toggle appears between conditions.

<Frame caption="Two conditions joined by an AND/OR toggle.">
  <img src="https://mintcdn.com/landerlab-babdc23f/9hihqqyvuqaqWYwq/images/Screenshot-2026-06-23-at-12.04.10-PM.png?fit=max&auto=format&n=9hihqqyvuqaqWYwq&q=85&s=fb61a7752f54013ec037deddbad28f16" alt="Screenshot 2026 06 23 At 12 04 10 PM" width="382" height="537" data-path="images/Screenshot-2026-06-23-at-12.04.10-PM.png" />
</Frame>

* **AND** - a lead takes the Yes branch only if it matches **every** condition in the group.
* **OR** - a lead takes the Yes branch if it matches **at least one** condition in the group.

For more complex logic, click **Add Condition Group** to add another group. An **AND / OR** toggle then appears *between* the groups too:

1. **Within a group** - conditions combine with the group's AND / OR toggle.
2. **Between groups** - each group is evaluated as a whole, then groups combine with the AND / OR toggle between them.

<Note>
  Think of groups like parentheses in math: conditions inside a group are evaluated first, then the groups are combined. Reach for a new group whenever your logic mixes AND and OR.
</Note>
