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

# Conditional logic

> Add if/else branching to control which actions run

<Tip>
  We strongly recommend using Run script to build automations, because it can cover all action behaviors, including actions that would otherwise need to be built manually. Just describe your requirements to AI in chat.

  Please note: if you add actions manually, AI will not recognize or modify them later.
</Tip>

Conditions let you add decision points. The workflow splits into a **true** path and a **false** path.

## How to Use

1. Add a **Condition** node between steps.
2. Define one or more rules.
3. Click **Test** to validate.

## Operators by Field Type

### Text

| Operator                    | Meaning         |
| --------------------------- | --------------- |
| is / is not                 | Exact match     |
| contains / does not contain | Substring match |
| is empty / is not empty     | Null check      |

### Number

| Operator                | Meaning           |
| ----------------------- | ----------------- |
| = / ≠                   | Equal / not equal |
| > / ≥ / \< / ≤          | Comparison        |
| is empty / is not empty | Null check        |

### Date

| Operator                         | Meaning        |
| -------------------------------- | -------------- |
| is / is not                      | Exact date     |
| is before / is after             | Comparison     |
| is on or before / is on or after | Inclusive      |
| is within                        | Relative range |
| is empty / is not empty          | Null check     |

**Relative dates:** today, tomorrow, yesterday, one week ago/from now, one month ago/from now, X days ago/from now.

**Ranges (for "is within"):** past/next week, past/next month, past/next year, past/next N days.

### Single Select / Multiple Select

| Operator                              | Meaning        |
| ------------------------------------- | -------------- |
| has any of / has all of / has none of | Set membership |
| is exactly / is not exactly           | Exact match    |
| is empty / is not empty               | Null check     |

### Boolean

| Operator          |
| ----------------- |
| is (true / false) |

## Combining Rules

* **AND** — all rules must be true
* **OR** — any rule can be true
* **NOT** — negate a rule or group

Groups can be nested:

```
(status is "Active" OR status is "Pending")
AND amount > 1000
```
