-
Notifications
You must be signed in to change notification settings - Fork 0
Variable_local_exists
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Checks if a local variable exists by looking it up by name and returns the result.
| Parameter | Data Type | Description |
|---|---|---|
| name | string | name of the local variable |
boolean: Returns whether the local variable exists or not.
// demonstrates checking if a local variable exists or not
if (variable_local_exists("cat")) {
// cat does exist
} else {
// cat does not exist
}
NOTOC
This is number 1