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

# Condition

> Route a workflow based on matching rules.

A **Condition** sends the workflow down different paths based on rules you define.

## Add a condition

1. Add **Condition** from the sidebar.
2. Choose a field, comparison, and value.
3. Add more rules if needed.
4. Connect the matching and **Else** paths.

<img src="https://chatling-assets.b-cdn.net/condition-editor-workflows.jpg" width="500" />

## Available details

Conditions can check:

* Event details
* Conversation details
* Message content
* Contact properties
* Variables

The available details depend on the trigger and earlier steps in the workflow.

## Match multiple rules

Choose whether **all** rules or **any** rule must match. If the rules do not match, the workflow follows the **Else** path.

You can add more branches when different results should follow different paths. The first matching branch is used.
