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)
1
all(0 1 2)
0
all(true false)
0
all(true true true)
1
all(1..10$2:5)
1
all(0..9$2:5);
0
Related function: any