Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 305 Bytes

1430-data-ismap.markdown

File metadata and controls

23 lines (14 loc) · 305 Bytes

ISMAP

b = ISMAP (x)

Returns true if x is a MAP variable.

Example

A = {"x":1, "y":2}
print IsMap(A)      ' Output 1

A = [1,2,3]
print IsMap(A)      ' Output 0 (is an array)

A = 1
print IsMap(A)      ' Output 0 (is a number)

A = "abc"
print IsMap(A)      ' Output 0 (is a string)