Boolean 

(System Library)

Description:              This module takes a valid Boolean test and returns the numeric equivalent.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      \System\Boolean(Variable)

Parameters:             Variable    { numeric }  { required }  { no default: }

                                                The variable whose value is to be converted.

Comments:               This module is a member of the System Library, and must therefore be prefaced by \System\, as shown in the "Format" section. If the application you are developing is a script application, the System variable must be declared in APPMOD.SRC and need not be prefaced by a backslash in the function call.

                             The return value from this module is 1 if Variable contains a valid Boolean true of any case ("true", "t", "yes", "y", "on") and 0 otherwise.

Example:

Var = PickValid(System\Boolean(Var), 0);

See Also:

Boolean Logic  | Case | Cond | If | IfElse| IfOne | IfThen | PickValid