getPropertyDefault: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=getPropertyDefault
|name=getPropertyDefault
|version=1.3b48
|description=
|description=
Returns the [[Campaign:property default value| default value]] of a [[Token:property| token property]] for the [[Token:Current Token|Current Token]]. If the [[Campaign:property default value| default value]] contains nothing then an empty string ({{code|""}}) is returned.  
Returns the [[Campaign:property default value| default value]] of a [[Token:property| token property]] for the [[Token:Current Token|Current Token]]. If the [[Campaign:property default value| default value]] contains nothing then an empty string ({{code|""}}) is returned.  
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: val = getPropertyDefault(name)]
getPropertyDefault(name)
</source>
</source>
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 12:23, 10 March 2009

getPropertyDefault() Function

Introduced in version 1.3b48
Returns the default value of a token property for the Current Token. If the default value contains nothing then an empty string ("") is returned.

Usage

getPropertyDefault(name)