> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# NOT

> The NOT function returns the opposite of a logical value. It is supported across YiDA scenarios such as Form and workflow design. Combine it with other functions to build complex logical conditions.

The **NOT** function represents negation and returns the opposite of a logical value.

## Supported Scenarios

The NOT function is supported in the following YiDA scenarios:

* Form (main form fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Integration and automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
NOT(logical)
```

## Attributes

| **Attribute** | **Required** | **Description**                                     |
| ------------- | ------------ | --------------------------------------------------- |
| logical       | Yes          | The logical value to negate. Must be true or false. |

## Return Value

| **Return type** | **Description**                              |
| --------------- | -------------------------------------------- |
| Boolean         | The opposite of the specified logical value. |

## Example

As shown below, combine `NOT()` with `NE()` to check whether a person's age equals 30.

## Try It Out

Block submission when the numeric component value is less than 0.
