convert/truefalse - convert an expression to a value of type `truefalse'
|
Calling Sequence
|
|
convert( expr, 'truefalse' )
|
|
Parameters
|
|
expr
|
-
|
any Maple expression that can be evaluated as a boolean
|
|
|
|
|
Description
|
|
•
|
The function convert( expr, 'truefalse' ) attempts to convert the expression expr to one of the two values true and false. This is intended to be used in composition with procedures that return a boolean literal that can include the value FAIL. The value FAIL is replaced by the value false.
|
•
|
The argument expression expr must be an expression that can be evaluated as a boolean, resulting in one of the values true, false, or FAIL. If returns true, then the conversion also returns the value true. Otherwise, the conversion returns the value false.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?