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().

Since: PCC2 1.99.12

See also: Dim (Elementary Function)