> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/how-tos/conditional-logic.md).

# Conditional Logic

## Conditional Logic

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

<figure><img src="/files/Oe1ifwXQ0gbKVZg7bR2u" 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="/files/iaAflP1ReuQbrYIbliDk" 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="/files/ov9Ufrk9JsUcL9owZoan" 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 %}
