> For the complete documentation index, see [llms.txt](https://docs.widgelix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.widgelix.com/actions-formerly-rule-engine/comparison-equations.md).

# Comparison Equations

**Compare with constant** and **Compare with asset measurement** support the following comparison operators. *Measurement* is the value reported by the monitored asset.

<figure><img src="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2FZXmmnAPssrSrL5lT1w9r%2Fimage.png?alt=media&amp;token=46df1ff7-4499-43b8-8059-597c6d65b206" alt=""><figcaption></figcaption></figure>

| Operator                  | The condition is true when the measurement is ...                  |
| ------------------------- | ------------------------------------------------------------------ |
| **Less Than**             | less than the value                                                |
| **Less Than Or Equal**    | less than or equal to the value                                    |
| **Equal**                 | equal to the value                                                 |
| **Greater Than Or Equal** | greater than or equal to the value                                 |
| **Greater Than**          | greater than the value                                             |
| **Not Equal**             | not equal to the value                                             |
| **In Range**              | greater than or equal to **Min** AND less than or equal to **Max** |
| **Out Of Range**          | less than or equal to **Min** OR greater than or equal to **Max**  |

{% hint style="danger" %}
**Compare with asset measurement** doesn't support **In Range** and **Out Of Range**.
{% endhint %}

The same operators (except In Range and Out Of Range) are available as the **Reset comparison** of the [switching threshold range](https://docs.widgelix.com/actions-formerly-rule-engine/creating-an-action.md#switching-threshold-range-hysteresis).
