type/boolean - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Logic : Relations : type checking : type/boolean

type/boolean

check for type Boolean

 

Calling Sequence

Parameters

Description

Subtypes

Examples

Calling Sequence

type(expr, boolean)

Parameters

expr

-

any expression

Description

• 

These functions return true if expr is of the specified type, and false otherwise.

• 

An expression is of type boolean if it is of type type/relation, type type/logical or one of the Boolean constants true, false, or FAIL.

Subtypes

• 

type/literal, type/relation, type/truefalse, type/truefalseFAIL

Examples

typex<5&comma;boolean

true

(1)

typeaornotb&comma;boolean

true

(2)

type1<2and5<x&comma;boolean

true

(3)

typefalse&comma;boolean

true

(4)

See Also

boolean

evalb

type

type/truefalse

type/truefalseFAIL