is_handle

This function checks if the supplied value is a handle. It returns true if it is, otherwise it returns false.

Read about handles on the page for Data Types.

 

Syntax:

is_handle(val);

ArgumentTypeDescription
valAnyThe value to check.

 

Returns:

Boolean

 

Example:

if (is_handle(a))
{
    delete(a);
}

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