# If / Else action

> Send each contact down the True or Else path depending on their details, tags, the reply they sent, the time, or their deal.

Source: https://docs.mycrmsim.com/guides/action-if-else
Updated: 2026-12-02

**If / Else** checks each contact against your conditions. Contacts who pass
go down **TRUE**; everyone else goes down **ELSE**.

![Adding an If / Else step that checks whether the reply contains yes](https://docs.mycrmsim.com/assets/if-else-CxSOYvlf.gif)

## Settings

| Setting | What it does |
|---|---|
| **Match Conditions** | **ALL (AND)**: every rule must be true. **ANY (OR)**: at least one must be true. |
| **Add Rule** | Adds a condition. Each one has an **Attribute**, an **Operator** and a **Value**. |
| **Attribute** | **Contact** fields (name, email, phone, company, address, **Timezone**, **AI Mode**, **Tags** and more), **Custom fields**, **Message** (the reply's text), **This run** (**Current time**, **Contacted since this run started**) and **Deal** (**Deal status**, **Deal stage**). |
| **Operator** | Depends on the attribute: **is**, **is not**, **is any of**, **is none of**, **is empty**, **is not empty**, **contains**, **does not contain**, **starts with**, **ends with**, number and date comparisons, and **is within hours** / **is outside hours** for **Current time**. |
| **Value** | What to compare with. For **is any of** and **is none of** the box is labelled **(comma separated values)**. |

## How it works

- Text checks ignore upper and lower case. On **Message**, punctuation is
  ignored too.
- Only **is any of** and **is none of** take a list. Type the values with
  commas between them; the condition looks for an exact match with one of
  them (for **Tags**: the contact has any of them).
- **contains**, **does not contain**, **starts with** and **ends with** take
  **one** word or phrase. A comma there is part of the phrase. To check a
  reply for several words, click **Add Rule** once per word and set **Match
  Conditions** to **ANY (OR)**.
- **Message** is the reply that started the run (**Customer Reply** trigger)
  or the reply that released a **Wait for Reply**. In other runs it's empty:
  **is empty** is true and everything else is false.
- **Deal** fields only have a value in runs started by an opportunity
  trigger. They're read live, so a check after a long wait sees the deal as
  it is now.
- **Contacted since this run started** is *yes* when you called or messaged
  the contact yourself after the run started. Automated messages don't count.
- A step with no rules sends everyone down **ELSE**.

## Examples

### Yes or no reply

**Customer Reply** → **If / Else**: **Message** **contains** *yes* →
**TRUE**: **Add Tag** *interested*. **ELSE**: **Add Tag** *not-now*.

### VIP gets a personal touch

**Form Submitted** → **If / Else**: **Tags** **is any of** *VIP, Gold* →
**TRUE**: **Notify Team**. **ELSE**: **Send Message**.

### Only during opening hours

**Missed Call Trigger** → **If / Else**: **Current time** **is within
hours** (Mon–Fri 9–5) → **TRUE**: **Send Message** "We'll call you right
back". **ELSE**: **Send Message** "We're closed, we'll call tomorrow".

## Troubleshooting

| What you see | What to do |
|---|---|
| A **contains** rule with several words never matches | It looks for the whole phrase, commas included. Add one rule per word and use **ANY (OR)**. |
| **Message** is always empty | The run didn't start from a reply. Use a **Customer Reply** trigger, or put **Wait for Reply** before this step. |
