hasProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
m (Updated with recent version changes.)
Line 3: Line 3:
|version=1.3b48
|version=1.3b48
|description=
|description=
Returns 1 if the [[Token:token property|token property]] with the specified name exits on the current [[Token:token|token]].
Returns {{true}} if the [[Token Property]] with the specified name exists on a [[Token]].


|usage=
|usage=
Line 9: Line 9:
hasProperty(name)
hasProperty(name)
</source>
</source>
<source lang="mtmacro" line>
hasProperty(name, id)
</source>
'''Parameters'''
{{param|name|The name of the [[Token Property]] which is checked for on the token.}}
{{param|id|The token {{code|id}} of the token which is checked for the [[Token Property]], defaults to the [[Current Token]]. {{TrustedParameter}} }}
|changes=
{{change|1.3b51|Added {{code|id}} parameter option.}}
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 02:26, 31 March 2009

hasProperty() Function

Introduced in version 1.3b48
Returns true(1) if the Token Property with the specified name exists on a Token.

Usage

hasProperty(name)
hasProperty(name, id)

Parameters


Version Changes

  • 1.3b51 - Added id parameter option.