# If/Else Router

The If/Else Router node enables your flow to branch based on different conditions. You can string together multiple conditions to handle various scenarios, with each condition creating a new path in the conversation.

#### Setting up conditional routing:

1. Select condition type (Signal, Language, or other available types)
2. Configure the value to check for that condition
3. Combine multiple conditions using "+ Add condition" (by If or And operator)
4. Create specific cases for each scenario
5. Set up an "Else" path for when no conditions match

Example:

<figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FrAOFfbgHD58qqLk0uZya%2Fhub-assistant-virbe.virbe.app_dashboard_conversation-flows_ca98acce-9cff-4d65-ad55-7ca28f98965e_node_9c3c1740-30ef-4bac-8cd2-e243ca3f669b%20(1).png?alt=media&#x26;token=3550b66f-9021-484d-92b5-d1b296625343" alt=""><figcaption><p>Example of If/Else Router use</p></figcaption></figure>

#### Common use cases:

* Check conversation state signals (start, interrupt, end)
* Route based on user's language
* Handle different user inputs
* Process system events
* Manage conversation flow based on multiple conditions

{% hint style="info" %}
**Important** **considerations**:

* Each condition creates a new path - keep them organized (e.g. by moving them to separate flows)
* Conditions are checked in order, from top to bottom
* The Else path handles any case not covered by specific conditions
* You can remove individual conditions using "Remove case"
* Multiple conditions can be combined for complex routing
* Test all paths to ensure proper handling
  {% endhint %}
