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

# MAX

> Learn how to use the MAX function across different YiDA scenarios to return the maximum value from a set of numbers, including forms, workflow design, and integration & automation.

The MAX function returns the maximum value from a set of numbers.

## Supported Product Scenarios

The MAX function is supported in the following YiDA scenarios:

* Form (main form 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"}}
MAX(number1,number2···numberN)
```

## Attribute Description

| Attribute | Required | Description                                                                                                        |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| number    | Yes      | The set of numbers (Number type) from which to calculate the maximum value. Separate multiple numbers with commas. |

## Return Value

| Return value type | Description                   |
| ----------------- | ----------------------------- |
| Numerical         | The calculated maximum value. |

## Example

As shown below, use the `MAX()` function to return the maximum value from a set of numbers.

## Try It

Returns the largest value among the Number components.
