LOGICAL(L, KIND)

Purpose

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

Class

Elemental function

Argument type and attributes

L
An INTENT(IN) LOGICAL
KIND (optional)
An INTENT(IN) INTEGER scalar. The actual argument corresponding to KIND must be a constant expression.Fortran 2003 ends

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.