Skip to content

Commit 2f70f3a

Browse files
authored
Update 555-data-isarray.markdown
1 parent a6e388b commit 2f70f3a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
# ISARRAY
22

3-
> ISARRAY (x)
3+
> b = ISARRAY (x)
44
55
Returns true if x is an array.
66

7+
### Example
78

9+
```
10+
A = [1,2,3]
11+
print IsArray(A) ' Output 1
12+
13+
A = {"x":1, "y":2}
14+
print IsArray(A) ' Output 0 (is a map)
15+
16+
A = 1
17+
print IsArray(A) ' Output 0 (is a number)
18+
19+
A = "abc"
20+
print IsArray(A) ' Output 0 (is a string)
21+
```

0 commit comments

Comments
 (0)