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

Online Help

All Products    Maple    MapleSim


type/string

check for an object of type string

type/nonemptystring

check for a non-empty string

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, string)

type(x, nonemptystring)

Parameters

x

-

any expression

Description

• 

The call type(x, string) checks to see if x is of type string. It returns true if x is of type string, and false otherwise.

• 

The call type(x, nonemptystring) checks to see if x is of type string and x<>"".

Examples

> 

type⁡1&comma;string

false

(1)
> 

type⁡12&comma;string

false

(2)
> 

type⁡0.5&comma;string

false

(3)
> 

type⁡String&comma;string

true

(4)
> 

type⁡Name&comma;string

false

(5)
> 

type⁡ab&comma;string

false

(6)
> 

type⁡ab&comma;string

false

(7)
> 

type⁡&comma;string

true

(8)
> 

type⁡&comma;nonemptystring

false

(9)
> 

type⁡String&comma;nonemptystring

true

(10)
> 

type⁡1&comma;nonemptystring

false

(11)

See Also

Formats/ByType/string

string

type

type/atomic

type/indexable

type/literal

type/name