deleteStrProp: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:deleteStrProp moved to deleteStrProp) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=deleteStrProp | |name=deleteStrProp | ||
|version=1.3b42 | |||
|description=Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed. | |description=Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
deleteStrProp(props, key) | |||
</ | </syntaxhighlight> | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")] | [r: deleteStrProp("a=blah; b=doh; c=meh", "a")] | ||
</ | </syntaxhighlight> | ||
Returns "b=doh; c=meh". | Returns "b=doh; c=meh". | ||
}} | }} | ||
[[Category:String Property List Function]] | [[Category:String Property List Function]] |
Latest revision as of 17:17, 14 March 2023
deleteStrProp() Function
• Introduced in version 1.3b42
Returns a copy of the string property list with the specified key removed.
Usage
deleteStrProp(props, key)
Example
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")]