isPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Applied Template:MacroFunction)
Line 1: Line 1:
==Function isPC==
{{MacroFunction
 
|name=isPC
|description=
Returns 1 if the [[Token:Current Token|Current Token]] is a PC or 0 if it not.
Returns 1 if the [[Token:Current Token|Current Token]] is a PC or 0 if it not.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: pc = isPC()]
[h: pc = isPC()]
</source>
</source>


 
|example=
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isPC()): "Hello I am a PC"]
[r, if(isPC()): "Hello I am a PC"]
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 21:01, 8 March 2009

isPC() Function

Returns 1 if the Current Token is a PC or 0 if it not.

Usage

[h: pc = isPC()]

Example

[r, if(isPC()): "Hello I am a PC"]