# $or

`$or` operator lets you evaluate an **OR** condition between 2 or more conditions to be compared with each other. These sub-conditions can be both [<mark style="color:blue;">**Simple Conditions**</mark>](https://docs.cosmocloud.io/flow-builder/cql-cosmocloud-query-language/building-conditions/..#simple-condition) or [<mark style="color:blue;">**Compound Conditions**</mark>](https://docs.cosmocloud.io/flow-builder/cql-cosmocloud-query-language/building-conditions/..#compound-condition).  You can use this in any [<mark style="color:blue;">**Conditional Objects**</mark>](https://docs.cosmocloud.io/flow-builder/cql-cosmocloud-query-language/building-conditions/conditional-operators).

`$or` will return true only if **any of** the sub-conditions return true.

## Syntax

```json
{
    "$or": [ <cond>, <cond>, ...]
}
```

### Properties

| Field   | Description                                                                                                           | Required |
| ------- | --------------------------------------------------------------------------------------------------------------------- | -------- |
| \<cond> | <p>A nested Simple Condition object or Compound Condition object.<br><br>This can also be a Magical Autocomplete.</p> | true     |

## Examples

Let's say we have declared a variable `age` in our API flow, which has a value of **20** currently and a variable `marks` with value 80.

```json
{
    "$or": [
        {
            "$.variables.age": {
                "$gte": 10
            }
        },
        {
            "$.variables.marks": {
                "$gt": 90
            }
        }
    ]
}
```

The above expression would resolve to **true**.
