-
Notifications
You must be signed in to change notification settings - Fork 0
Variable_global_exists
hugh greene edited this page Jun 20, 2022
·
1 revision
Checks if a global variable exists by looking it up by name and returns the result.
Parameter | Data Type | Description |
---|---|---|
name | string | name of the global variable |
boolean: Returns whether the global variable exists or not.
// 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
edited by hpg678 on Github