> For the complete documentation index, see [llms.txt](https://support.emarketeer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.emarketeer.com/guides/journeys/journey-steps/journey-step-if-else.md).

# If / Else

Journey step that splits the Journey into a yes and a no branch based on conditions.

The If / Else step splits the Journey into two branches based on conditions. Contacts who meet the conditions follow the **yes** branch, and the others follow the **no** branch.

<div align="left" data-with-frame="true"><img src="https://2894606528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0ywqCs3au1x0DqPhEJTR%2Fuploads%2Fgit-blob-a6b9bff5bb6038033559fef6669c76330eabc13f%2Fjourney-step-if-else-settings.png?alt=media" alt="IF / ELSE dialog with a description and a form submission condition"></div>

## Settings

* **Description (optional)** — a short text that is shown on the step in the Journey builder, so you can see at a glance what the step checks.
* **Conditions** — click **Set conditions** to choose the criteria. The conditions you set are shown in the step. Click **Edit** to change them.

Click **Apply** to save the step.

## Build the branches

After you add the step, the Journey splits into a **yes** and a **no** branch. Add steps to each branch to decide what happens to the contacts on it.

<div align="left" data-with-frame="true"><img src="https://2894606528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0ywqCs3au1x0DqPhEJTR%2Fuploads%2Fgit-blob-85e078c58d0c625f71b904787d38089f7d03444b%2Fjourney-step-if-else-branches.png?alt=media" alt="If/Else step in the Journey builder with its description, splitting into a yes branch and a no branch"></div>

{% hint style="info" %}
Always add a wait step before an If / Else step, or it will be evaluated immediately. This is especially important when you evaluate interactions from a previous step, such as an email open.
{% endhint %}

To give the contact time to act first, add a [Wait](https://support.emarketeer.com/guides/journeys/journey-steps/journey-step-wait.md) step before the If / Else step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.emarketeer.com/guides/journeys/journey-steps/journey-step-if-else.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
