---
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."
updated: 2025-05-30T09:38:46Z
published: 2025-08-22T10:57:28Z
---

> ## 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)

<style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style><style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style>
