getProperty: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=getProperty | |||
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 ("") 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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: val = getProperty(name)] | [h: val = getProperty(name)] | ||
</source> | </source> | ||
}} | |||
[[Category:Token Function]] |
Revision as of 03:25, 8 March 2009
getProperty() Function
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
[h: val = getProperty(name)]