IsArray(a:Any):Int

Check for array. If the parameter refers to an array, returns the number of dimensions. If the parameter is another non-EMPTY value, returns 0. If the parameter is EMPTY, this function returns EMPTY.

Since every array has at least one dimension, this function can be used as if it returns a truth value if required:

  If IsArray(a) Then Print "This is an array!"

Since 1.99.22, this function also works for builtin arrays such as Ship().

See also: Dim (Elementary Function), Elementary Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.