# Conditional Logic

## Conditional Logic

Conditional logic allows you to define rules for properties such as Dynamic Visibility, Interactivity settings and Triggers

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FbqiUGimpZkPZVf0h7uTI%2Fimage.png?alt=media&#x26;token=c19a0b38-3403-4a14-ac40-b6a1d3cb3c1f" alt="" width="363"><figcaption></figcaption></figure>

&#x20;Clicking on the operator brings up a list of the available options, which include:

* equals (=)
* not equal (<>)
* less than (<)
* less than or equal to (<=)
* greater than (>)
* greater than or equal to (>=)
* is empty
* is not empty
* changes *- available for triggers only*

### Compound Conditional Logic

You can configure multiple conditions for Dynamic Visibility, Interactivity and Triggers.&#x20;

To add another condition, click the <img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FZDYQjr3pSY1NYAG3aShF%2FCompound_addcondition.png?alt=media&#x26;token=0392aa78-ac93-4f2f-ab5d-3b63c662e532" alt="" data-size="line"> button. This will generate another set of inputs for adding a new rule. Additionally, a delete option will appear, allowing you to remove these new rules.&#x20;

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FsDAuvfshkpxz47HUS9aS%2FCompound_newrule.png?alt=media&#x26;token=0a231291-8a43-403e-960b-b425d9c61083" alt="" width="279"><figcaption><p>Multiple conditions, with AND option selected</p></figcaption></figure>

After adding another condition, a logic toggle will appear with "AND/OR" options. This selection dictates whether the functionality is activated when all conditions are satisfied (AND) or on an either-or basis (OR). By default, the "AND" option is selected.

{% hint style="info" %}
When multiple conditions exist, they are **all** evaluated along with the AND/OR properties to determine if the condition is met (TRUE) or not.
{% endhint %}
