LOGICAL(L, KIND)

Purpose

Converts between objects of type logical with different kind type parameter values.

Class

Elemental function

Argument type and attributes

L
must be of type logical.
KIND (optional)
must be a scalar integer initialization expression.

Result type and attributes

Result value

The value is that of L.

Examples

LOGICAL (L .OR. .NOT. L) has the value .TRUE. and is of type default logical, regardless of the kind type parameter of the logical variable L.