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