HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11522
AND(I, J)
Description
Logical AND.
Class
Elemental nonstandard function.
Arguments
I must be of type integer.
J must be of type integer with the same kind type parameter as I.
Result type/
type parameters
Same as I.
Result value
The result has the value obtained by performing a logical AND on I and J bit-by-bit according
to Table 11-4.
The model for interpreting an integer value as a sequence of bits is described in “The Bit
Model” on page 508.
Table 11-4 Truth table for AND intrinsic
I J AND(I, J)
111
100
010
001