Skip to content

Variable_global_exists

hugh greene edited this page Jun 20, 2022 · 1 revision

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

Clone this wiki locally