is_array

Checks a variable to see if it is an array or not.

Syntax:

is_array(variable);


Argument Description
variable The variable to check.


Returns: Boolean


Description

This function can be used to check and see if a variable holds an array (it will return true) or not (in which case it will return false).


Example:

if is_array(a)
   {
   a = 0;
   }

The above code checks a variable to see if it is an array, and if the function returns true, the array is deleted.


Back: Arrays
Next: array_length_1D
© Copyright YoYo Games Ltd. 2018 All Rights Reserved