> For the complete documentation index, see [llms.txt](https://docs.gallabox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gallabox.com/bots/bot-utilities/condition.md).

# Condition

> **Who can use this Card?**
>
> * Gallabox Users having permission to either build and deploy bots or manage bots.
> * Available on all paid plans.

### Overview

Condition logic allows you to split the chat-flow based on the conditions you want.

Each condition logic has two outputs - On Success and On Interrupt.

### Setting the Condition Block

<figure><img src="/files/i6Xm8ixNsSp8GcX8ZBAD" alt=""><figcaption><p>Adding the Condition Card</p></figcaption></figure>

The condition card consists of **Comparator** (Variable), **Operator** (condition), the **Value**, and the A**ND & OR Logic** (To add more than one condition)

In the Comparator, you have to fill the variable that is saving the user's response.

<figure><img src="/files/GSKufn3UYzPqsr3IXyIe" alt=""><figcaption></figcaption></figure>

In the Operator, you have to fill the condition that will be checked.

<figure><img src="/files/6Ruq8ecJUzztC3VX8DKu" alt=""><figcaption><p>Selecting the condition</p></figcaption></figure>

After Setting the condition, you will have to add the value that you want to check against the comparator (variable).

<figure><img src="/files/dn0C5jI9LoyxlqGg4DK9" alt=""><figcaption><p>Adding the value</p></figcaption></figure>

### Using AND or OR Logic

These are used in case you want to add two or more conditions.

<figure><img src="/files/uLjSvjjUSE2Q4zzzjdiP" alt=""><figcaption><p>Using the OR Logic</p></figcaption></figure>

Follow the GIF below:

<figure><img src="/files/RS1G4o1TUjM02TtzdGm9" alt=""><figcaption></figcaption></figure>

The Condition card has On Success and On Fail Conditions which you can use to move forward with the chat-flow.

<figure><img src="/files/x5Jd3gxoXsZHJqTl8f1X" alt=""><figcaption></figcaption></figure>
