---
title: ANY
url: https://www.tines.com/stories/docs/formulas/functions/any/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/stories/docs/llms.txt) › [Formulas](https://www.tines.com/llm/stories/docs/formulas.md) › [Functions](https://www.tines.com/llm/stories/docs/formulas/functions.md)*

# ANY

*[View on tines.com](https://www.tines.com/stories/docs/formulas/functions/any/)*

Returns `TRUE` if the lambda returns a truthy value for at least one element in the array, otherwise returns `FALSE`. Only `FALSE` and `NULL` are falsy. An empty array returns `FALSE`.

**Categories:** Lambdas, Arrays

## Syntax

```
ANY(array, LAMBDA(item, expr))
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "alerts": [
      {
        "name": "Failed login",
        "severity": "low"
      },
      {
        "name": "Malware detected",
        "severity": "critical"
      }
    ]
  }
}
```

Formula:

```
ANY(my_action.alerts, LAMBDA(alert, alert.severity = "critical"))
```

Output:

```json
true
```

### Example 2

Input:

```json
{
  "my_action": {
    "alerts": [
      {
        "name": "Failed login",
        "severity": "low"
      },
      {
        "name": "Malware detected",
        "severity": "medium"
      }
    ]
  }
}
```

Formula:

```
ANY(my_action.alerts, LAMBDA(alert, alert.severity = "critical"))
```

Output:

```json
false
```

### Example 3: An empty array returns FALSE.

Input:

```json
{
  "my_action": {
    "alerts": []
  }
}
```

Formula:

```
ANY(my_action.alerts, LAMBDA(alert, alert.severity = "critical"))
```

Output:

```json
false
```
