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

# NE

> The NE function compares two values to check whether they are not equal. It is supported in YiDA Form and workflow design scenarios. Use this function to check whether the requested quantity differs from the stock quantity and block form submission accordingly.

The **NE** function compares two values to check whether they are not equal. If they are not equal, it returns true.

## Supported Product Scenarios

The NE function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
NE(value1,value2)
```

## Attribute Description

<table>
  <tr>
    <td>**Attribute**</td>
    <td>**Required**</td>
    <td>**Description**</td>
  </tr>

  <tr>
    <td>value1</td>
    <td>Yes</td>
    <td rowSpan={2}>The values to compare. Numerical, Text, Date, and other components are supported.</td>
  </tr>

  <tr>
    <td>value2</td>
    <td>Yes</td>
  </tr>
</table>

## Return Value

| **Return type** | **Description**                                                                                                                        |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| boolean         | The result of comparing the two parameters.<br />• **true**: The two values are not equal.<br />• **false**: The two values are equal. |

## Example

Use the `NE()` function to compare whether two dates are equal, as shown in the figure below.

## Try It Out

When the requested quantity does not equal the stock quantity, form submission is blocked.
