deleteStrProp: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<source" to "<syntaxhighlight") |
Full Bleed (talk | contribs) m (Added delim to usage and added parameter fields.) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
<syntaxhighlight lang="mtmacro" line> | <syntaxhighlight lang="mtmacro" line> | ||
deleteStrProp( | deleteStrProp(proplist, key) | ||
deleteStrProp(proplist, key, delim) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
'''Parameters''' | |||
{{param|proplist|String property list to extract data from.}} | |||
{{param|key|Key within string to extract. This cannot include a space.}} | |||
{{param|delim|Delimiter between fields (default is ";").}} | |||
|example= | |example= |
Latest revision as of 23:59, 14 November 2024
deleteStrProp() Function
• Introduced in version 1.3b42
Returns a copy of the string property list with the specified key removed.
Usage
deleteStrProp(proplist, key)
deleteStrProp(proplist, key, delim)
Parameters
proplist
- String property list to extract data from.key
- Key within string to extract. This cannot include a space.delim
- Delimiter between fields (default is ";").
Example
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")]