Loading [MathJax]/jax/output/HTML-CSS/jax.js

CHR_CTOL

Read a LOGICAL value from a string

Description:

The given string is decoded as a logical value. TRUE, T, YES, Y and FALSE, F, NO, N are recognised, regardless of case. Other strings result in STATUS being set to SAI__ERROR.

Invocation

CALL CHR_CTOL( STRING, LVALUE, STATUS )

Arguments

STRING = CHARACTER ( ) (Given)
The string from which a LOGICAL value is to be read.
LVALUE = LOGICAL (Returned)
The resulting LOGICAL value.
STATUS = INTEGER (Given and Returned)
The status value: if this value is not SAI__OK on input, the routine returns without action; if the routine does not complete successfully, STATUS is returned set to SAI__ERROR.