isPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=isPC
|name=isPC
|version=1.3b48
|description=
|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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: pc = isPC()]
isPC()
</source>
</source>



Revision as of 12:01, 10 March 2009

isPC() Function

Introduced in version 1.3b48
Returns 1 if the Current Token is a PC or 0 if it not.

Usage

isPC()

Example

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