countStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "source>" to "syntaxhighlight>")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 5: Line 5:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
countStrProp(propList)
countStrProp(propList)
</syntaxhighlight>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: countStrProp("a=blah; b=doh; c=meh")]
[r: countStrProp("a=blah; b=doh; c=meh")]
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 18:53, 14 March 2023

countStrProp() Function

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

Usage

countStrProp(propList)

Example

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