# any {#any}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`any(X)`

## Arguments {#arguments}

**X** is a scalar/pair/vector/matrix.

## Details {#details}

Return 1 if there is at least one element in *X* that is true or not 0. Null values are ignored.

## Examples {#examples}

```
any(1 0 2)
// output: 1

any(0 0 0)
// output: 0

any(0 0 NULL)
// output: 0

any(true false)
// output: 1

any(false false)
// output: 0

any(0..9$2:5)
// output: 1
```

Related function: [all](all.md)

