# Branch a flow into several paths

Send each run down the path that fits it, then bring the paths neatly back together.

Source: https://support.rework.com/article/branch-a-flow-into-several-paths

One trigger often covers several cases at once. A lead worth chasing today and a lead worth a newsletter both arrive through the same form. The **Branches** step reads the data and sends each run down the arm that matches it, and the **Merge** step brings them back to one path afterwards.

## Step 1: Add the branch

- Click the **+** on the line where the paths should split.
  
- Search for **Branches** and pick it, or find it under **Flow controls**.
  

The builder adds a **Merge** step at the same time and keeps whatever came after the split attached to it, so the flow still ends on a single path. See [How a flow is shaped](https://support.rework.com/article/how-a-flow-is-shaped).

## Step 2: Name the arms and give each one a condition

Open the **Branches** step. Each arm is a card:

- Type a name that reads well on the canvas, for example _Hot lead_.
  
- Build its rule under **Where**, the same way you would in a filter: pick a field from the steps above, an operator, and a value.
  
- **Add condition** adds another rule to the arm; **Add condition group** combines groups with **and** / **or**.
  

![The Branches step with its first arm named and its condition](https://storage.googleapis.com/reworkv3-public/success/260923/YxVKCexqQ1aeIb8WrTe1DkQmqfqztKv8ilr4eQaSCE1T8If4BPYw3MebOgaRYag6/img.yoQWI22Xbth4TWlK8GKPD3rGOruy8VPG7ptJUYvbNK9Qrkj8SfPgPjgmIADkuoKa.png)

Add as many arms as you need with **Add branch**, and remove one with the **×** on its card.

![The second and third arms of the branch](https://storage.googleapis.com/reworkv3-public/success/260923/Fn4J9rVBEe0Mcya3QWTYNG0ZD01WnurLsUwLthK2qdpmnhWAWRiUT2IT2emGaTBU/img.pMo3Cu3iQRNifWIJWCDsDynDJZGpr94XW6WyT6Wc8yvlWPss6GP4fwesgd00NX1O.png)

> **Note:** Every arm whose condition matches runs, so write conditions that don't overlap when you want exactly one arm per run, for example _score 70 and above_, _30 to 69_, _under 30_. An arm with no rules at all always matches, which makes it a handy "everything else" path.

## Step 3: Fill in each arm

Each arm starts empty, showing **Add step**. Click it and add the steps that should run on that path, for example an **HTTP request** to your CRM and a **Send email** to the right person.

![The canvas with three named arms that reconverge at the merge](https://storage.googleapis.com/reworkv3-public/success/260923/Us3sIf9HLsdn1HavTrBHdyT8sj4TP2dWSCbS3v2eMWy9IRsZhvFrpiR8srVsH6uK/img.inNWgBwq8s2ZdXID2z2af1XxvR0hgQ8M9A67IDetYoYnokPJMReSe84DRNasyRGG.png)

## Step 4: Decide how the paths come back together

Open the **Merge** step and pick its **Waiting mode**:

| Mode | Continues |
| --- | --- |
| **Wait for all branches** | When every arm that ran has finished. Use it when the next step needs all the work done. |
| **Wait for any branch** | As soon as the first arm reaches the merge. Use it when the arms are alternatives and one is enough. |

![The Merge step with its waiting mode options](https://storage.googleapis.com/reworkv3-public/success/260923/I9KjHZEzsa6uVm59w969C4i942oNYzhrItUdifXyG5AlkpP3aI1yGGthpDPsKJhb/img.I4Acd7gwZ0i5ZAW4QZi7Z8QRiVctXadPYRNJD8uomErUej8qBWG771tvrZ2HH9AG.png)

## Step 5: Check it on a real run

In a finished run, the arm that matched is green and the arms that didn't are marked **Skipped**, so you can confirm at a glance that a lead went where it should ✅

See [Read a run step by step](https://support.rework.com/article/read-a-run-step-by-step).
