> For the complete documentation index, see [llms.txt](https://shedmate.gitbook.io/shedmate-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shedmate.gitbook.io/shedmate-help/setting-up-shedmate/costing-database-and-pricing-calculations/variables/logical-operators.md).

# Logical Operators

These operators are widely used in Formulas. For example, in an IF formula, you can use = to check whether one variable is equal to another or to a constant value and take an action based on this, or you can use > to check whether one value is greater than another.

* **`=` Equal to:** This operator checks whether two values are equal. If the values are equal, it returns true; otherwise, it returns false.
* **`<>` Not equal to:** This operator checks whether two values are different. If the values are different, it returns true; otherwise, it returns false.
* Operators used for Numerical Comparisons:
  * **`>=` Greater than or equal to:** checks that the value on the left is greater than or equal to the value on the right
  * **`>` Greater than:** checks that the value on the left is strictly greater than the value on the right
  * **`<=` Less than or equal to:** checks if the value on the left is less than or equal to the value on the right
  * **`<` Less than:** checks if the value on the left is strictly less than the value on the right.

### Usage example:

**`=` Equal to**:

<figure><img src="https://lh7-us.googleusercontent.com/a6giP5aZfdlxod88ux16c7Bufzdkfish8z3emN6LZHKh0Gxq1fiQqZhhUJ75kKs7_w3qtJwyFDoAjHk6ngc6-40xQjxp6rftmiyoZl8O1a3B9VvA00Z35pPngN4q3BoaDMmdIj1fCrYIK58AMpXdKcs" alt=""><figcaption></figcaption></figure>

**`<>` Not equal to**:

<figure><img src="https://lh7-us.googleusercontent.com/nTYL5wIdL3TJwO6gT6JWQ22KHACPQN2r11Nd2FXaTVuR7OEKs9Syw5lg9KScK4Klt6ttI8P9SwNCOjd3NKTrMSim5ssx0POAAQj2yfp7WyVRq74NX5ze7K9WezgEls9n9qIZMQTORi2z321Fi8vnAEU" alt=""><figcaption></figcaption></figure>

**`>=` Greater than or equal to**:

<figure><img src="https://lh7-us.googleusercontent.com/sREQDm5lo8pbK8XBcv9r0Y4OGF-h1GyUI8RpOG0FdulHPZ6pWQCX2dffzySUuCYSPdInOKd6Wapn5ybm9Dr55Aw_jH6vDax3Zdb-tuAasaAt284Z7jV0uTLnc6KJX8yLBwj_rouQywQdwBa1vllS9FI" alt=""><figcaption></figcaption></figure>

**`>` Greater than**:

<figure><img src="https://lh7-us.googleusercontent.com/1T_2AEcxw2msl5eliXz1KB9aWcATcxi3JUjfzz9abkS1XPhw9JeesQ9Xq5c6vepBTHgFQpGyCSrNeCjPReYRj5eOtOBL7FkuhsGtHsLSElXGhtw8DJ9uurQQHaF4ouOGYbPrI6ZWtRIFii8TNAWMTk8" alt=""><figcaption></figcaption></figure>

**`<=` Less than or equal to**:

<figure><img src="https://lh7-us.googleusercontent.com/Km8H2YInFpBTDK_kin6ddeNM0gEZj7vIihGdgEw_zGWjQzKHa6iTewcx2JMVjwO5geJ6rVBwZXbhGTqfjnWd8M86ZP1AAhBfWN0SWFu2aTOnNkR0RA_rLV05PtgakwtvzLAufqoHRTPQy44vV0MXzj4" alt=""><figcaption></figcaption></figure>

**`<` Less than**:

<figure><img src="https://lh7-us.googleusercontent.com/m4qpxZbjTKpQkUdhzFk5zpY_5rO7cfTYInScH1CEYUOk7HWn9XVXwcAb53t7cszgmh2AD45MrTfnvpFptIwc7_GXZvIB79bZAnRuoP8A2DJUVSlqhHZ7ipYFS01Ugam-bsXJ-C-iJlw3nwGksgBDT9o" alt=""><figcaption></figcaption></figure>
