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

# Condition - Conditional Branching

> Branch a flow's path based on a comparison against flow data

## Overview

The Condition step evaluates one comparison against data from an earlier step and routes the flow down a different path depending on the result.

## Use When

* You need the flow to take a different next step depending on a value (e.g. route by document type, or by whether a field exists)

## Configuration

Condition has two modes, chosen at the top of the step (switching modes removes existing conditions and **cannot be undone**):

* **True / False** — one condition. Build it with **Add** (pick a variable from a previous step), **Select** (pick an operator), and **Value** (the comparison value). Then choose the next step for **If True** and, separately, for **If False**.
* **Multi case** — named cases (A, B, C, …), each with its own condition and its own "Then" action. Use **Add case** to add more branches than a simple true/false split.

Operators available depend on the field's type. For a text field, the real options are:

* **Equals**
* **In**
* **Not In**
* **Contains**
* **Not Contains**
* **Exists**

<Tip>
  There's no explicit AND/OR/NOT combinator and no nested if/elseif/else chain — a single Condition step tests exactly one comparison. To combine multiple criteria or handle more than two outcomes, use **Multi case** or chain multiple Condition steps together.
</Tip>

## Related Components

<CardGroup cols={2}>
  <Card title="Agent" icon="robot" href="/features/flows/agent-step">
    Route based on AI analysis results
  </Card>

  <Card title="Intake" icon="inbox-in" href="/features/flows/intake">
    Branch based on collected data
  </Card>

  <Card title="Customization" icon="sliders" href="/features/flows/customization">
    Update task properties conditionally
  </Card>

  <Card title="Approval" icon="stamp" href="/features/flows/approval">
    Route to different approvers
  </Card>
</CardGroup>
