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

# ADD

> The ADD function calculates the sum of multiple numerical values. It is supported in various YiDA scenarios such as forms and workflow design. Given numerical parameters, it returns their total.

The **ADD** function calculates the sum of multiple numerical values.

## Supported Scenarios

The ADD 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 and automation
* Workflow node
* Connector

## Format

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
ADD(number1,number2,number3....numberN)
```

## Attribute Description

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

  <tr>
    <td>number1</td>
    <td>Yes</td>
    <td rowSpan={2}>Numerical values to sum. Accepts multiple values separated by commas.</td>
  </tr>

  <tr>
    <td>number2</td>
    <td>Yes</td>
  </tr>
</table>

## Return Value

| **Return type** | **Description**        |
| --------------- | ---------------------- |
| Numerical       | The sum of the values. |

## Example

Use the `ADD()` function to calculate the sum of two numerical components, as shown below.

## Try It Out

Calculate the total quantity across multiple products.
