# Condition

Condition logic allows you to divide the chat flow based on specified conditions. Each condition logic has two outputs: On Success and On Interrupt.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FeQjp7Lor46ngvIHdD5Ah%2FScreenshot%202025-09-18%20155240.png?alt=media&#x26;token=0217f81f-d361-4554-a89d-f3f5bf86b459" alt=""><figcaption></figcaption></figure>

## Setting the Condition Block

The condition card includes a Comparator (variable), Operator (condition), Value, and AND & OR Logic (for adding multiple conditions).

* **Comparator:** Enter the variable that stores the user's response.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FuL9W9ZdKatEgwruO1zbd%2FScreenshot%202024-07-09%20150523.png?alt=media&#x26;token=5056913d-3159-43c6-8e24-2d8aedd27a11" alt=""><figcaption></figcaption></figure>

* **Operator:** Specify the condition to be checked.
* **Value:** Enter the value to be compared against the comparator (variable).

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2F2zsZrShUwpxTCrc7WdUn%2FScreenshot%202024-07-09%20150546.png?alt=media&#x26;token=5cabc804-b5a4-4dc6-9e43-91ad9a077cbb" alt=""><figcaption></figcaption></figure>

After setting the condition, you can use the AND & OR logic to add more than one condition.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2Fh39uOJpgWhMHywLOduc9%2FScreenshot%202024-07-09%20150857.png?alt=media&#x26;token=5d0d9fce-535e-4b41-9861-0927536b8b0b" alt=""><figcaption></figcaption></figure>
