The IOR function performs a bit-wise logical inclusive OR operation on two INTEGER arguments.

## Syntax

IOR (i,j)

*i* is an INTENT(IN) scalar or array of type INTEGER.

*j* is an INTENT(IN) scalar or array of type INTEGER and is the same kind as *i*.

The result is of type INTEGER. Its value is obtained by performing a bit-wise logical inclusive OR operation on *i* and *j*.

## Example

i=53 ! i=00110101 binary (lowest order byte) j=45 ! j=00101101 binary (lowest order byte) k=ior(i,j) ! k=00111101 binary (lowest order byte) ! k=61 decimal