deleteStrProp: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function deleteStrProp== Returns a copy of the [[Macros:string proper ===Usage=== <source lang="mtmacro" line> [h: val = ceil(num)] [h: val = ceiling(num)] </source> ===Examples=== <so...) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns a copy of the [[Macros:string | |name=deleteStrProp | ||
|version=1.3b42 | |||
|description=Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed. | |||
|usage= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
deleteStrProp(props, key) | |||
</syntaxhighlight> | |||
</ | |||
|example= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: | [r: deleteStrProp("a=blah; b=doh; c=meh", "a")] | ||
</syntaxhighlight> | |||
Returns "b=doh; c=meh". | |||
}} | |||
[[Category:String Property List Function]] | |||
</ | |||
Returns | |||
[ | |||
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")]