variable_global_exists(name)

From ENIGMA
Revision as of 01:23, 1 April 2014 by RobertBColton (talk | contribs) (Created page with "{{FuncTitle|variable_global_exists|name}} == Description == Checks if a global variable exists by looking it up by name and returns the result. == Parameters == {| class="funcpa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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
}