getProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==Function getProperty==
==Function getProperty==


Returns the value of a [[Token:property| token property]]. 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.
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.


<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: val = getProperty(name)]
[h: val = getProperty(name)]
</source>
</source>

Revision as of 13:10, 13 December 2008

Function getProperty

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.

[h: val = getProperty(name)]