indexKeyStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page indexKeyStrProp to IndexKeyStrProp without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
indexKeyStrProp(prop, index)
indexKeyStrProp(prop, index)
</source>
</syntaxhighlight>


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

Latest revision as of 16:23, 15 March 2023

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".