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

# AND

> The AND function evaluates whether multiple conditions in a logical expression are all true. It returns true when every condition is met, and false otherwise. This function supports various scenarios on the YiDA platform, such as forms and workflow design, and uses a simple syntax.

The **AND** function represents logical conjunction. It returns true only when every logical expression inside the function evaluates to true. Otherwise, it returns false.

## Supported Product Scenarios

The AND function is available in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (associated actions)
* Integration and automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
AND(condition1,condition2....condition.N)
```

## Attributes

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

  <tr>
    <td>condition1</td>
    <td>Yes</td>
    <td rowSpan={2}>The logical expression or condition to evaluate.<br />Used to check whether two or more conditions are all true (that is, whether all specified conditions are met).<br /><ul><li>If every condition is true, the AND function returns true.</li><li>If any condition is false, the AND function returns false.</li></ul></td>
  </tr>

  <tr>
    <td>condition2</td>
    <td>Yes</td>
  </tr>
</table>

## Return Value

| **Return type** | **Description**                                   |
| --------------- | ------------------------------------------------- |
| boolean         | Whether all logical expressions evaluate to true. |

## Example

As shown below, the `AND()` function returns **true** only when both `Number1` and `Number2` are greater than 2. Otherwise, it returns **false**.

## Try It Out

Form submission is blocked when multiple components meet the specified conditions simultaneously.
