The LOGICAL_TRUE function returns True (1) if its arguments are non-zero (non-NULL for strings and heap variables), and False (0) otherwise.
Result = LOGICAL_TRUE(Arg)
Integer zero (false) or one (true) if the argument is a scalar, or an array of zeroes and ones if the argument is an array.
The expression on which the logical truth evaluation is to be carried out. The argument can be a scalar or an array of any type other than structure.
This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs. The values stored in the
At the IDL Command Line, enter:
PRINT, LOGICAL_TRUE(2), LOGICAL_TRUE(0)
Logical Operators, Bitwise Operators, KEYWORD_SET, LOGICAL_AND, LOGICAL_OR