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

# GT

> The GT function checks whether one of two values is greater than the other. It is supported across multiple YiDA scenarios, including Forms, workflow design, and integration & automation. It compares two numeric or Date values and returns a boolean indicating the comparison result.

## Supported Product Scenarios

The GT 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)
* Integration & automation
* Workflow node
* Connector

## Format

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

## Attributes

| **Attribute** | **Required** | **Description**                                   |
| ------------- | ------------ | ------------------------------------------------- |
| value1        | Yes          | The value to compare. Supports numbers and dates. |
| value2        | Yes          | The value to compare. Supports numbers and dates. |

## Return Value

| **Return type** | **Description**                                                                                                                                       |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Boolean         | The result of comparing the two parameters.<br />• **true**: value1 is greater than value2.<br />• **false**: value1 is less than or equal to value2. |

## Example

As shown below, use the `GT()` function to compare `Numerical 1` and `Numerical 2`. When the value of `Numerical 1` is greater than the value of `Numerical 2`, it returns true.
