Skip to content

Variable_global_exists

hpgDesigns edited this page Aug 8, 2021 · 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

This is number 1

Clone this wiki locally