---
title: ALL
url: https://www.tines.com/stories/docs/formulas/functions/all/
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)*

# ALL

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

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

**Categories:** Lambdas, Arrays

## Syntax

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

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "checks": [
      {
        "name": "dns",
        "passed": true
      },
      {
        "name": "tls",
        "passed": true
      }
    ]
  }
}
```

Formula:

```
ALL(my_action.checks, LAMBDA(check, check.passed))
```

Output:

```json
true
```

### Example 2

Input:

```json
{
  "my_action": {
    "checks": [
      {
        "name": "dns",
        "passed": true
      },
      {
        "name": "tls",
        "passed": false
      }
    ]
  }
}
```

Formula:

```
ALL(my_action.checks, LAMBDA(check, check.passed))
```

Output:

```json
false
```

### Example 3: An empty array returns TRUE, so check SIZE as well if an empty array should not pass.

Input:

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

Formula:

```
ALL(my_action.checks, LAMBDA(check, check.passed))
```

Output:

```json
true
```
