8.180 LOGICAL — Convert to logical type

Synopsis:

RESULT = LOGICAL(L [, KIND])

Description:

Converts one kind of LOGICAL variable to another.

Class:

Elemental function

Arguments:
LThe type shall be LOGICAL.
KIND(Optional) A scalar INTEGER constant expression indicating the kind parameter of the result.
Return value:

The return value is a LOGICAL value equal to L, with a kind corresponding to KIND, or of the default logical kind if KIND is not given.

Standard:

Fortran 90 and later

See also:

INT — Convert to integer type,
REAL — Convert to real type,
CMPLX — Complex conversion function