any

Syntax

any(X)

Arguments

X is a scalar/pair/vector/matrix.

Details

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

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