Tests whether an expression is an array.
bTest = IsArray(aExpression)
| Variable | Description |
|---|---|
| bTest | TRUE if the expression is an array. BOOLEAN. |
| aExpression | The expression to test. ANYTYPE. |
IsArray returns TRUE if aExpression is an array, or FALSE if it is not.
[-] testcase IsArrayExample()
[ ] INTEGER i = 1
[-] ARRAY[2] OF STRING asFruit = {...}
[ ] "apples"
[ ] "oranges"
[ ] Print(IsArray(asFruit)) // prints: TRUE
[-] Print(IsArray(i)) // prints: FALSE