IsArray Function

Action

Tests whether an expression is an array.

Syntax

bTest = IsArray(aExpression)
Variable Description
bTest TRUE if the expression is an array. BOOLEAN.
aExpression The expression to test. ANYTYPE.

Notes

IsArray returns TRUE if aExpression is an array, or FALSE if it is not.

Example

[-] testcase IsArrayExample()
	[ ] INTEGER i = 1
	[-] ARRAY[2] OF STRING asFruit = {...}
		[ ] "apples"
		[ ] "oranges"
	[ ] Print(IsArray(asFruit)) // prints: TRUE
	[-] Print(IsArray(i))       // prints: FALSE