indexKeyStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Added delim to usage and parameter section.)
Line 7: Line 7:
|usage=
|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
indexKeyStrProp(prop, index)
indexKeyStrProp(proplist, index)
indexKeyStrProp(proplist, index, delim)
</syntaxhighlight>
</syntaxhighlight>
'''Parameters'''
{{param|proplist|String property list to extract data from.}}
{{param|index|The numerical index of the element you want returned.}}
{{param|delim|Delimiter between fields (default is ";").}}


|example=
|example=

Revision as of 16:38, 14 November 2024

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(proplist, index)
indexKeyStrProp(proplist, index, delim)

Parameters

  • proplist - String property list to extract data from.
  • index - The numerical index of the element you want returned.
  • delim - Delimiter between fields (default is ";").

Example

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