getProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
(Updated with recent version changes.)
Line 2: Line 2:
|name=getProperty
|name=getProperty
|version=1.3b48
|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]].


|usage=
|usage=
Line 8: Line 8:
getProperty(name)
getProperty(name)
</source>
</source>
'''Parameter'''
{{param|name|The name of the property that has it value returned.}}
|changes=
{{change|1.3b51|Changed to return the default value if the property has no value.}}
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 03:41, 12 March 2009

getProperty() Function

Introduced in version 1.3b48
Returns the value of a token property of the Current Token.

Usage

getProperty(name)

Parameter

  • name - The name of the property that has it value returned.


Version Changes

  • 1.3b51 - Changed to return the default value if the property has no value.