all
Syntax
all(X)
Arguments
X is a scalar/pair/vector/matrix.
Details
Return 0 if at least one element of X is false or 0; return 1 otherwise. Null values are ignored.
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