getPropertyDefault: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page GetPropertyDefault to getPropertyDefault: Converting page titles to lowercase)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getPropertyDefault(name)
getPropertyDefault(name)
getPropertyDefault(name, propType)
getPropertyDefault(name, propType)

Revision as of 19:16, 14 March 2023

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

<syntaxhighlight lang="mtmacro" line> getPropertyDefault(name) getPropertyDefault(name, propType) </source>

Parameter

  • name - The name of the property to get the default value of.
  • propType - The token type to get the property from. Defaults to the token type of the Current Token.