
bool - Boolean evaluation

Calling sequence:
bool(expr)

Parameter:

expr   --  Boolean expression

Overloading:

all

Summary:

bool evaluates Boolean expressions: the result is TRUE or FALSE . Evaluation
is the same as that of the Boolean context (in the conditions of if, while or
repeat ).

bool returns the error Can't evaluate bool if the expression cannot be
evaluated as Boolean. bool is a kernel function.

>>  bool(3 < 5);

     TRUE

>>  b:=a: bool(a = b and 3 < 4);

      TRUE

>>  bool(4);

      Error: Can't evaluate bool [bool]

