# Filter

A **Filter** step sends each contact down a **Yes** or a **No** path depending on **who they
are** — their email, name, phone or any other field — not on what they did. Contacts that
match go down **Yes**, everyone else down **No**, straight away. To branch on what a contact
did (opened, clicked, replied), use [If / else](/steps/branch-and-exit) instead.

![Screenshot of a Filter step on the canvas splitting contacts into Yes 3 and No 5, each path with its own email](/screenshots/tw-filter-step.png)

## Where to find it

On the canvas: **+** → **Filter** ("Split by contact data").

## Add a filter

1. Add a **Filter** step where the path should split, and click it.
2. Under **Field**, pick what to compare: **Full name**, **Email**, **First name**,
   **Last name**, **Mobile phone**, **Company**, or any field your list carries.
3. Under **Rule**, pick how to compare it (see Options).
4. Type the **Value** — or, for **is in the list**, paste the **Values**: one per line, or
   separated by commas. A column copied from a spreadsheet works.
5. Tick **Not** to turn the rule around: **Yes** becomes everyone it does *not* match.
6. Click **Count matches** to see how many contacts in the list would go each way right now.
7. Build the **Yes** path and the **No** path with their own steps, and **Save**.

![Screenshot of the Filter settings: field Email, rule is in the list, three pasted addresses, and Count matches showing Yes 3 and No 5](/screenshots/tw-filter-settings.png)

## Options

| Rule | Yes when the field… | With **Not** |
|---|---|---|
| **equals** | is exactly the value | is anything else |
| **is in the list** | is one of the pasted values | is none of them |
| **contains** | has the value anywhere in it | does not have it |
| **starts with** | begins with the value | does not begin with it |
| **ends with** | ends with the value (for example `@acme.com`) | does not end with it |

Capital letters and spaces before or after never matter. Phone numbers are compared by
their digits, so `+91 98765-43210` and `919876543210` match.

## Preview before anyone goes through

Before any contact has reached the step, the card shows a dashed **Preview · Yes N · No M**:
how the rule would split the contacts who would reach this step right now. It changes as you
edit the rule, the values or **Not** in the settings. Once contacts reach the step, the card
shows the real counts instead, in solid colours; they normally match the preview.

The preview counts the contacts in the workflow's list, less anyone removed from the workflow,
who also pass any Filters before this one on the same path. An If / else before it can't be
predicted, so everyone counts there. There is no preview until a list is attached and the
rule is set up.

## Example: who has not switched yet

A workflow for 61 customers moving to a new app. You have the addresses of the 24 who have
not switched yet.

1. Add a **Filter** after the announcement email: **Email** · **is in the list** · paste the
   24 addresses.
2. **Yes** path: a reminder email. **No** path: a thank-you email.
3. **Count matches** shows **Yes 24 · No 37** before anything is sent, and the card itself
   shows the same as a dashed **Preview · Yes 24 · No 37**.

Once contacts reach the step, the card shows how many took each path, and it updates while
the workflow runs. **View live data** on the card lists every contact with the path they took.

## Good to know

- A contact is checked once, the moment they reach the step, against their details at that
  moment.
- A filter with no field or no value is not ready: the workflow will not start with it, and
  on a running workflow its **Start from here** button appears only once it is set up.
- A path with nothing after it simply finishes the workflow for those contacts.
- You can add a Filter to a running workflow. The workflow keeps running; contacts who had
  already finished can be moved onto it with **Start from here** — see
  [Change a live workflow](/running/live-workflow-changes).
- A Filter step cannot be archived; it can be deleted.
- Each contact's timeline shows which path they took.

## Related

- [Branch and exit](/steps/branch-and-exit) · [Lists](/concepts/contacts-and-lists) ·
  [Merge tags](/email/merge-tags) · [MCP tools](/developers/mcp)

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

## FAQ

<details>
<summary>How is a Filter different from If / else?</summary>

A Filter splits by who the contact is — a field like email or company. If / else splits by what they did.

</details>
<details>
<summary>Do capital letters or phone formats matter?</summary>

No. Case and surrounding spaces never matter, and phone numbers are compared by their digits.

</details>
<details>
<summary>Can I see the split before anyone goes through?</summary>

Yes. **Count matches** and the card's dashed preview show how the rule would split the contacts right now.

</details>

</section>
