Skip to content

Instance_exists

hugh greene edited this page Jun 20, 2022 · 1 revision

Notation

Description

Checks whether a given instance of an object currently exists or not and returns the result.

Parameters

  • obj: index of the instance

Return Values

boolean: Returns (true or false) whether or not the object instance exists or not.

Example Call

// demonstrates checking if an instance of an object exists or not
if (instance_exists(myobj)) {
  // instance does exist
} else {
  // instance does not exist
}

NOTOC

Clone this wiki locally