getState: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function getState== Returns 1 if the specified Token:state is set on the current Token:token otherwise it returns 0. ===Usage=== <source lang="mtmacro" line> [h: isSet = getSt...)
 
No edit summary
Line 8: Line 8:


===Examples===
===Examples===
<source lang="mtmacro" lines>
<source lang="mtmacro" line>
[if(getState("Dead"), "You are dead!", "You are not dead (yet!)")]
[if(getState("Dead"), "You are dead!", "You are not dead (yet!)")]
</source>
</source>

Revision as of 23:39, 1 December 2008

Function getState

Returns 1 if the specified state is set on the current token otherwise it returns 0.

Usage

[h: isSet = getState(name)]

Examples

[if(getState("Dead"), "You are dead!", "You are not dead (yet!)")]