variable_global_exists(name)

From ENIGMA

Jump to: navigation, search

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
}
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox