indexValueStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page IndexValueStrProp to indexValueStrProp: Converting page titles to lowercase)
No edit summary
Line 6: Line 6:


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


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

Revision as of 16:24, 15 March 2023

indexValueStrProp() Function

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

Usage

indexValueStrProp(prop, index)

Example

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