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

# EQ

> The EQ function compares whether two values are equal. It supports Text, Number, Date, and other components, and applies to scenarios such as form validation, workflow design, and integration & automation. The format is EQ(value1, value2), and it returns a boolean value.

The **EQ** function compares whether two values are equal. It supports Text, Number, Date, and other components.

## Supported Product Scenarios

Use the EQ function in the following YiDA scenarios:

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (association action)
* Integration & automation
* Workflow node
* Connector

## Format

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
EQ(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 for equality. Supports Text, Numerical, Date, and more.</td>
  </tr>

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

## Return Value

| **Return type** | **Description**                                                             |
| --------------- | --------------------------------------------------------------------------- |
| Boolean         | Returns **true** if the two values are equal; otherwise, returns **false**. |

## Example

As shown below, when `Number 1` equals `Number 2`, the function returns **true**; otherwise, it returns **false**.

## Try It Out

When the product name matches the warehouse product name, block form submission.
