test for an expression of type truefalseFAIL
test for an expression of type boolean_constant
Maple ordinarily uses a three-valued logic using the Boolean values true, false, and FAIL. The Maple type truefalseFAIL describes this set of values.
The expression type(e,'truefalseFAIL') evaluates to true if, and only if, the expression e is of type truefalseFAIL, which is defined as the expressions true, false, and FAIL. No other expression is of type truefalseFAIL.
The type boolean_constant is a synonym for truefalseFAIL and behaves identically.
Note that every expression that is of type truefalseFAIL is also of type boolean, but that the converse is not true. Expressions of type relation such as x and y where x and y are symbols, are of type boolean but not of truefalseFAIL.
The type truefalse refers to only the two Boolean values true and false and excludes the value FAIL.
type( proc() true; end proc, 'truefalseFAIL' );
The type/truefalseFAIL and type/boolean_constant commands were introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.