type/BooleanOpt - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/BooleanOpt

type/BooleanOpt

check for an expression of type BooleanOpt

 Calling Sequence type(expr, BooleanOpt(name))

Parameters

 expr - any expression

Description

 • The type(expr, BooleanOpt(name)) function returns true if expr is identical to name or an equation of the form name=true or name=false.

Examples

 > $\mathrm{type}\left(\mathrm{inplace},\mathrm{BooleanOpt}\left(\mathrm{inplace}\right)\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{compact}=\mathrm{true},\mathrm{BooleanOpt}\left(\mathrm{compact}\right)\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\mathrm{conjugate}=\mathrm{false},\mathrm{BooleanOpt}\left(\mathrm{conjugate}\right)\right)$
 ${\mathrm{true}}$ (3)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam