This AI is still in early stages of development.
Define.stateOf()
- Aubergine
Owned by Aubergine
Check state of a specific global property...
Syntax
var result = Define.statusOf(name[, asString]);
Parameters
Parameter | Type | Mandatory | Notes | API Version |
---|---|---|---|---|
name | String | The name of the global property to test. | 1.0 | |
asString | Boolean | Should result be in string format?
See "Return values" below for more information. Default: | 1.0 |
Return values
Value | Type | Notes | API Version |
---|---|---|---|
<result> | Boolean | The state of the property: | 1.0 |
<string> | String | The state of the property as a string – one of:
| 1.0 |
Example
Output state of scavengerPlayer property in human readable form...
console("scavengerPlayer is "+Define.stateOf("scavengerPlayer", true));
Contents
Jump to:
Define API
Topics:
- Define() — Add, remove or redefine a property on the global scope, overriding any native property of the same name on the global object...
- Define.has() — Check for presence of a global property...
- Define.RESERVED — A reserved keyword (a native that cannot be changed)...
- Define.stateOf() — Check state of a specific global property...
- Define.hasNative() — Check for presence of a native global property...
- Define.REMOVED — Indicates a native global was removed...
- Define.MISSING — Indicates a global is not present (missing).
- Define.NATIVE — Indicates a global was defined prior to including the Define API.
- Define.REPLACED — Indicates a global was replaced by a script using the Define API.
- Define.ADDED — Indicates a global was added by a script using the Define API.
- Define API Diagnostics — Diagnostic routines for Define API...
- Define Scripts — A library of ready made scripts for the Define API...