# Comparison Equations

Compare with constant and Compare with device measurement both support different types of comparisons.

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

* Less Than\
  Rule will be triggered if device measurement is **less than** defined value
* Less Than or Equal\
  Rule will be triggered if device measurement is **less than or equal** defined value
* Equal\
  Rule will be triggered if device measurement is **equal** defined value
* Greater Than or Equal\
  Rule will be triggered if device measurement is **greater than or equal** defined value
* Greater Than\
  Rule will be triggered if device measurement is **greater than** defined value
* Not Equal\
  Rule will be triggered if device measurement is **not equal** defined value
* In Range\
  Rule will be triggered if device measurement is **greater than or equal** to **Min** value **AND** is **less than or equal** to **Max** value
* Out of Range\
  Rule will be triggered if device measurement is **less than or equal** to **Min** value **OR** is **greater than or equal** to **Max** value

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.widgelix.com/rule-engine/comparison-equations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
