countStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=countStrProp
|name=countStrProp
|version=1.3b42
|description=Returns the number of keys in a [[Macros:string property list|string property list]].
|description=Returns the number of keys in a [[Macros:string property list|string property list]].


|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: num = countStrProp(propList)]
countStrProp(propList)
</source>
</source>



Revision as of 11:08, 10 March 2009

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.