--- title: "NOT function" slug: "not-function" description: "Learn to use the NOT function to invert the results logical expressions, enhancing your model’s logic and data accuracy." tags: ["NOT", "Pigment Blocks", "Pigment Boards", "functions ", "formula syntax", "Modeling and Formulas", "Test one condition"] updated: 2025-05-30T09:38:46Z published: 2025-08-22T10:57:28Z canonical: "kb.pigment.com/not-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.pigment.com/llms.txt > Use this file to discover all available pages before exploring further. # NOT function ## Description Inverts the result of a given logical expression. ## Syntax ```plaintext NOT logical ``` ## Return type Boolean (TRUE or FALSE) ## Examples | **Case** | **Results** | **Return Type** | | --- | --- | --- | | `NOT TRUE` | `FALSE` | `boolean` | | `NOT country.hasSeaBoarder` | `TRUE` when the boolean property `hasSeaBoarder` of a country list is `FALSE` | `boolean` | | `NOT Month.Quarter.'Quarter of Year' = "Q1"` | `TRUE` for all non Q1 months | `boolean` | --- **Excel equivalent**: [NOT(logical)](https://support.microsoft.com/en-us/office/not-function-9cfc6011-a054-40c7-a140-cd4ba2d87d77) **See also**: [AND](/v1/docs/and-function), [OR](/v1/docs/or-function), [IN](/v1/docs/in-function)