IsList Function

Action

Tests whether an expression is a list.

Syntax

bTest = IsList(aExpression)
Variable Description
bTest TRUE if the expression is a list. BOOLEAN.
aExpression The expression to test. ANYTYPE.

IsList tests whether aExpression is a list. It returns TRUE if the expression passed in is a list, or FALSE if it is not.

Example

[-] testcase IsListExample()
	[-] LIST liItem = {...}
		[ ] 1
		[ ] 2
		[ ] 3
	[ ] INTEGER i = 0
	[ ] Print(IsList(liItem)) // prints: TRUE
	[-] Print(IsList(i))      // prints: FALSE