---
title: "Not"
description: "Learn how to use the NOT condition for logical operations and configure access policies effectively. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/access-policies/conditions/not"
---

# Not

The `not` condition lets you perform a logical NOT operation against a sub-condition.

## Configuration

```
{
    "type": "not",
    "config": {
        "condition": {
            ...
        }
    }
}
```

## Sample #1

This policy document allows a principal to edit any content that is not in Spanish

```
{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "not",
            "config": {
                "condition": {
                    "type": "locale",
                    "config": {
                        "locale": "es_ES"
                    }
                }
            }
        }]
    }]
}
```
