This function can be used to check and see if a variable holds a struct (it will return true) or not (in which case it will return false).
is_struct(n);
| Argument | Description |
|---|---|
| n | The variable to check. |
Boolean
if is_struct(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.