indexKeyStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=indexKeyStrProp
|name=indexKeyStrProp
|version=1.3b42
|description=
|description=
Returns the key from the specified [[Macros:string property list|string property list]] at the specified index. The index for the [[Macros:string property list|string property list]] starts at 0.
Returns the key from the specified [[Macros:string property list|string property list]] at the specified index. The index for the [[Macros:string property list|string property list]] starts at 0.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: val = indexKeyStrProp(prop, index)]
indexKeyStrProp(prop, index)
</source>
</source>



Revision as of 11:08, 10 March 2009

indexKeyStrProp() Function

Introduced in version 1.3b42
Returns the key from the specified string property list at the specified index. The index for the string property list starts at 0.

Usage

indexKeyStrProp(prop, index)

Example

[indexKeyStrProp("a=blah; b=doh; c=meh", 1)]
Returns "b".