Variable_local_exists - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Checks if a local variable exists by looking it up by name and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
name | string | name of the local variable |
Return Values
boolean: Returns whether the local variable exists or not.
Example Call
// demonstrates checking if a local variable exists or not
if (variable_local_exists("cat")) {
// cat does exist
} else {
// cat does not exist
}
NOTOC