# 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="/files/Mvl85btocGYY9GTzGpaM" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.virbe.ai/dashboard-management/conversation-flows/nodes/logic-nodes/if-else-router.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
