convert/truefalseFAIL
convert an expression to a value of type `truefalseFAIL'
Calling Sequence
Parameters
Description
Examples
Compatibility
convert( expr, 'truefalseFAIL' )
expr
-
any Maple expression that can be evaluated as a boolean
convert( expr, 'truefalseFAIL' ) attempts to convert the expression expr to one of the values true, false, or FAIL. This is intended to be used in composition with procedures that return a boolean literal that can include the value FAIL.
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.
convert⁡2<3,truefalseFAIL
true
convert⁡3<2,truefalseFAIL
false
The following conversion returns FAIL because complex numbers are not comparable with <.
convert⁡1<I,truefalseFAIL
FAIL
The following conversion returns an error because the values of a and b are unknown.
convert⁡a<b,truefalseFAIL
Error, (in `convert/truefalseFAIL`) unable to convert a < b to type `truefalseFAIL'
sort⁡posint,integer,numeric,string,subtype
string,posint,integer,numeric
The convert/truefalseFAIL command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
convert
evalb
sort
type/boolean
type/truefalseFAIL
Download Help Document