countStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "<source" to "<syntaxhighlight")
m (Added delim to usage and added parameters section.)
Line 7: Line 7:
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
countStrProp(propList)
countStrProp(propList)
countStrProp(propList, delim)
</syntaxhighlight>
</syntaxhighlight>
'''Parameters'''
{{param|proplist|String property list to extract data from.}}
{{param|delim|Delimiter between fields (default is ";").}}


|example=
|example=

Revision as of 16:32, 14 November 2024

countStrProp() Function

Introduced in version 1.3b42
Returns the number of keys in a string property list.

Usage

countStrProp(propList)
countStrProp(propList, delim)

Parameters

  • proplist - String property list to extract data from.
  • delim - Delimiter between fields (default is ";").

Example

[r: countStrProp("a=blah; b=doh; c=meh")]
Returns 3.