# Branch and exit

An **If / else** step sends each contact down a **Yes** or a **No** path, depending on
what they did. An **Exit condition** step is where contacts leave the workflow.

## Where to find it

On the canvas: **+** → **If / else** ("Branch on a condition"), or **+** → **Exit condition**.

## Before you start

- An earlier step whose signal you want to check — an email for opened or clicked; a
  LinkedIn connection request or message for the LinkedIn checks.

## Add a branch

1. Add an **If / else** step where the path should split, and click it.
2. Under **Condition**, pick the signal.
3. Set **Wait up to** — how long to wait for the signal before taking the **No** path.
4. Build the **Yes** path and the **No** path with their own steps.
5. **Save** the workflow.

![Screenshot coming soon: an If / else step with its Yes and No paths on the canvas](/screenshots/coming-soon.svg)

## Options

| Condition | Yes when |
|---|---|
| **LinkedIn connection accepted** | The contact is now a connection of the step's LinkedIn sender |
| **Replied on LinkedIn** | The contact replied to a LinkedIn message or InMail sent earlier in this workflow |
| **Replied to an email** | The contact replied to an email sent earlier in this workflow (see Good to know) |
| **Opened an email** | The contact opened (or clicked) an email sent earlier in this workflow |
| **Clicked a link in an email** | The contact clicked a link in an email sent earlier in this workflow |

The signal is checked again and again during the wait, so a contact takes the **Yes** path
as soon as it happens. Set **Wait up to** to 0 to check just once (the card shows **Check
once**).

## Exit condition

Contacts who reach an **Exit condition** step leave the workflow and count as finished.
A path that simply ends also finishes the workflow for the contact, so an exit step is
optional.

## Good to know

- Email replies are not detected yet, so **Replied to an email** always takes the **No**
  path for now. Use **Opened an email** or **Clicked a link in an email** instead.
- The LinkedIn checks use the step's LinkedIn sender, or the workflow's.
- Each contact takes one path. On a started workflow you can also split a path evenly with
  **Add path** — see [Change a live workflow](/running/live-workflow-changes).
- An **If / else** or **Exit condition** step cannot be archived; it can be deleted.
- To split contacts by who they are — their email, name, phone or a field — rather than
  by what they did, use a [Filter](/steps/filter) step.

## Related

- [LinkedIn steps](/steps/linkedin-steps) · [Opens and clicks](/tracking/opens-and-clicks)
- [Guide: Add if / else branching](https://turboworkflow.com/help/add-branching)

<section aria-labelledby="faq" class="faq">

## FAQ

<details>
<summary>Why does Replied to an email always take the No path?</summary>

Email replies are not detected yet. Use **Opened an email** or **Clicked a link in an email** instead.

</details>
<details>
<summary>Do I need an Exit condition step?</summary>

No. A path that simply ends also finishes the workflow for the contact.

</details>
<details>
<summary>How long does an If / else wait?</summary>

Up to the **Wait up to** you set, checking again and again. Set it to 0 to check just once.

</details>

</section>
