Skip to content

Variable_local_exists

hpgDesigns edited this page Aug 8, 2021 · 1 revision

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
}

NOTOC

This is number 1

Clone this wiki locally