countStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page CountStrProp to countStrProp: Converting page titles to lowercase)
m (Text replacement - "source>" to "syntaxhighlight>")
Line 7: Line 7:
<source lang="mtmacro" line>
<source lang="mtmacro" line>
countStrProp(propList)
countStrProp(propList)
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r: countStrProp("a=blah; b=doh; c=meh")]
[r: countStrProp("a=blah; b=doh; c=meh")]
</source>
</syntaxhighlight>
Returns 3.
Returns 3.
}}
}}
[[Category:String Property List Function]]
[[Category:String Property List Function]]

Revision as of 17:08, 14 March 2023

countStrProp() Function

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

Usage

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

Example

<source lang="mtmacro" line>

[r: countStrProp("a=blah; b=doh; c=meh")] </syntaxhighlight>

Returns 3.