## ANY intrinsic function

### Standard: F77 F90 F95 F2003 F2008 Example program

### ＜Syntax＞

ANY ( MASK [ , DIM ] )

MASK : rank *N* array of type Logical;

DIM : scalar Integer in the range 1 to *N*;

Result: Logical with the same kind as MASK.

### ＜Semantics＞

Reduces an array (either completely, or by collapsing one dimension) with the `.OR.`

operation; the value is true if and only if all the values (in that dimension with DIM=) are true.

### ＜Related＞

ALL intrinsic function, Array-scalar operations, Array-array operations, COUNT intrinsic function, IALL intrinsic function, IANY intrinsic function, IPARITY intrinsic function, MAXLOC intrinsic function, MAXVAL intrinsic function, MINLOC intrinsic function, MINVAL intrinsic function, .OR. operator, PARITY intrinsic function, PRODUCT intrinsic function, Reduction intrinsic functions, SUM intrinsic function