# all {#all}

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

## Syntax {#syntax}

`all(X)`

## Arguments {#arguments}

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

## Details {#details}

Return 0 if at least one element of *X* is false or 0; return 1 otherwise. Null values are ignored.

## Examples {#examples}

```
all(1 2 3)
// output: 1

all(0 1 2)
// output: 0

all(true false)
// output: 0

all(true true true)
// output: 1

all(1..10$2:5)
// output: 1

all(0..9$2:5);
// output: 0
```

Related function: [any](any.md)

