getProperty: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:getProperty moved to getProperty) |
Verisimilar (talk | contribs) m (Added version.) |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=getProperty | |name=getProperty | ||
|version=1.3b48 | |||
|description=Returns the value of a [[Token:property| token property]] of the [[Token:Current Token|Current Token]]. If the [[Token:property| token property]] contains nothing then an empty string ({{code|""}}) is returned. This function will not return the default value for a property if it is empty. | |description=Returns the value of a [[Token:property| token property]] of the [[Token:Current Token|Current Token]]. If the [[Token:property| token property]] contains nothing then an empty string ({{code|""}}) is returned. This function will not return the default value for a property if it is empty. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getProperty(name) | |||
</source> | </source> | ||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Revision as of 12:19, 10 March 2009
getProperty() Function
• Introduced in version 1.3b48
Returns the value of a token property of the Current Token. If the token property contains nothing then an empty string (
""
) is returned. This function will not return the default value for a property if it is empty.Usage
getProperty(name)