> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashquotes.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditions and branches

> Filter who starts a workflow and send people down different paths

export const PlusBadge = () => <span style={{
  backgroundColor: '#EFF6FF',
  color: '#2563EB',
  padding: '2px 8px',
  borderRadius: '4px',
  fontSize: '12px',
  fontWeight: '600',
  marginLeft: '6px',
  display: 'inline-block',
  verticalAlign: 'middle',
  border: '1px solid #BFDBFE'
}}>
    Plus
  </span>;

## Where conditions go <PlusBadge />

Conditions check details about the quote, booking, or contact. You use them in two places:

* **Only start when**, on the trigger. Decides who starts the workflow. See [triggers](/workflows/triggers#only-start-when).
* **Branch** paths. Send people down different steps partway through.

To end a run early, use [Stop when](/workflows/triggers#stop-when) on the trigger instead.

## Build a condition

1. Click **Add condition**
2. Pick a field, like **Event type**
3. Pick an operator, like **is**
4. Pick a value, like **Wedding**

With 2 or more conditions, choose whether to match **all** or **any** of them. The default is all.

## Condition fields

| Field | Checks |
| - | - |
| **Services** | Whether the quote includes or doesn't include a service |
| **Add-ons** | Whether the quote includes or doesn't include an add-on |
| **Event type** | The event type, like Wedding or Corporate |
| **Lead form used** | Which lead form the request came through |
| **Contact** | A specific contact, like a repeat client |
| **Quote source** | **Lead form**, **Your team**, **Inbox**, or **Copied quote** |
| **Quote type** | **Instant** or **Manual** (AutoDraft or made by your team) |
| **Booking source** | **A quote**, or **Your team** for bookings added without a quote |
| **Quote status** | New inquiry, Quote sent, Booked, Lost, or Expired |
| **Guest count**, **Event length (hours)**, **Guests per hour**, **Days until the event**, **Number of event days**, **Staff required**, **Resources required** | A number, using is at least, is more than, is at most, is less than, is, or is not |

### Fields by trigger

Each trigger only offers fields it has data for.

| Trigger | Only start when | Branches add |
| - | - | - |
| **Quote sent** | Services, Add-ons, Event type, Lead form used, Contact, number fields | Quote status |
| **Quote created** | Everything in Quote sent, plus Quote source and Quote type | Quote status |
| **Booking created** | Services, Add-ons, Event type, Contact, Booking source, number fields | Quote status |
| **Building a quote** | Services, Add-ons, Event type, Lead form used, Contact, Quote source, number fields except Days until the event | Nothing extra |

**Quote status** only appears in branches. It changes over time, so a branch checks it when someone reaches it.

## Branches

A branch sends people down different paths based on conditions.

1. Click **+** and choose **Branch**
2. Set the first path's conditions
3. Click **Add path** for each extra path
4. Add steps under each path

People take the **first** path they match, left to right. Anyone who matches none continues on **Everyone else**, the path on the far right. Paths don't join back up, so add the steps each path needs. To reuse steps on another path, [copy and paste them](/workflows/build-and-publish#work-faster).

Flashquotes checks a branch when someone reaches it, using the latest details.

### Example: different follow-ups for weddings

1. Trigger: **Quote sent**
2. **Branch** with one path: **Event type** is Wedding
3. On that path, your wedding follow-up emails
4. On **Everyone else**, your standard follow-up emails

Wedding quotes get the wedding emails. Every other quote gets the standard ones.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.