Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Migrated to Confluence 5.3
Excerpt |
---|
Check state of a specific global property... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
console("scavengerPlayer is "+Define.stateOf("scavengerPlayer", true)); |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Define APITopics:
|