This function can be used to check and see if a variable is a method variable (it will return true) or not (in which case it will return false).
NOTE To check if a value is callable (i.e. refers to a method or a function), see is_callable.
is_method(n);
Argument | Type | Description |
---|---|---|
n | Any | The variable to check. |
if is_method(get_vec)
{
show_debug_message("Method variable!");
}
The above code checks a variable to see if it is a method, and if the function returns true, then a debug message is output to the console.