isPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: pc = isPC()] | [h: pc = isPC()] | ||
</source> | </source> | ||
|example= | |||
<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"]