Exists - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


TypeTools

  

Exists

  

check whether a type exists in the TypeTools database

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Exists(typename)

Parameters

typename

-

symbol; name of the type

Description

• 

The Exists command returns true if a type is associated with the name typename via the TypeTools package, and false otherwise.

• 

Note that the Exists command does not check whether a name is the name of a valid type, since built-in types and types created by assigning to the name type/typename are not recognized.

• 

To determine whether a name is the name of a valid type, use type( typename, 'type' ).

Examples

> 

TypeToolsAddType⁡tff,identical⁡FAIL,identical⁡false,identical⁡true

> 

TypeToolsExists⁡tff

true

(1)
> 

TypeToolsExists⁡no_such_type__

false

(2)
> 

TypeToolsExists⁡integer

false

(3)
> 

type⁡integer,type

true

(4)

See Also

type

type[structured]

TypeTools

TypeTools[AddType]

TypeTools[GetTypes]