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.
is_handle(val);
Argument | Type | Description |
---|---|---|
val | Any | The value to check. |
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.