NAME

isstring - test if a value is a string

SYNOPSIS

val.isstring()

DESCRIPTION

The isstring() method tests whether val is a string or a wide string. In OADL, a string is defined as a 1D vector of characters.

RETURN VALUE

true if val is a 1D vector of characters, false otherwise.

ERRORS

None.

EXAMPLE

    "hello".isstring()
true

    L"hello".isstring()
true

    ['h', 'e', 'l', 'l', 'o'].isstring()
true

    ['h', 'e', 'l', 'l', 123].isstring()
false

SEE ALSO

typeof
ischar