hasProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Macros:Functions:hasProperty moved to hasProperty: Moved out of the Macros namespace)
m (Added MacroFunction template and Token Function category)
Line 1: Line 1:
==Function hasProperty==
{{MacroFunction
 
|name=hasProperty
|description=
Returns 1 if the [[Token:token property|token property]] with the specified name exits on the current [[Token:token|token]].
Returns 1 if the [[Token:token property|token property]] with the specified name exits on the current [[Token:token|token]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: propExsits = hasProperty(name)]
[h: propExsits = hasProperty(name)]
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 04:16, 8 March 2009

hasProperty() Function

Returns 1 if the token property with the specified name exits on the current token.

Usage

[h: propExsits = hasProperty(name)]