hasProperty: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
Verisimilar (talk | contribs) m (Updated with recent version changes.) |
||
Line 3: | Line 3: | ||
|version=1.3b48 | |version=1.3b48 | ||
|description= | |description= | ||
Returns | 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
Usage
hasProperty(name)
hasProperty(name, id)
Parameters
name
- The name of the Token Property which is checked for on the token.id
- The tokenid
of the token which is checked for the Token Property, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
Version Changes
- 1.3b51 - Added
id
parameter option.