variable_local_exists(name)

From ENIGMA
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Checks if a local variable exists by looking it up by name and returns the result.

Parameters

Parameter Data Type Description
name string name of the local variable

Return Values

boolean: Returns whether the local variable exists or not.

Example Call

// demonstrates checking if a local variable exists or not
if (variable_local_exists("cat")) {
  // cat does exist
} else {
  // cat does not exist
}