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

# OR

> Learn how to use the OR function in YiDA, including supported product scenarios, format, attribute descriptions, return values, and usage examples. Applies to scenarios such as form validation and workflow design.

The **OR** function represents a logical OR. If any logical expression in the function evaluates to true, the OR function returns true.

## Supported Product Scenarios

The OR function is supported in the following YiDA scenarios:

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

## Format

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

## Attribute Descriptions

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

  <tr>
    <td>condition1</td>
    <td>Yes</td>
    <td rowSpan={2}>The logical expressions or conditions to evaluate.<br />Used to determine whether at least one of two or more conditions is true (that is, whether any condition is met).<br /><ul><li>If all conditions are false (logical value false), the OR function returns false.</li><li>If any condition is true (logical value true), the OR function returns true.</li></ul></td>
  </tr>

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

## Return Value

| **Return type** | **Description**                                                                            |
| --------------- | ------------------------------------------------------------------------------------------ |
| Boolean         | If any logical expression in the function evaluates to true, the OR function returns true. |

## Usage Example

As shown in the figure below, if either `Numerical 1` or `Numerical 2` is greater than 2, the `OR()` function returns **true**; otherwise, it returns **false**.

## Try It

Block form submission when any of the components meets the specified condition.
