deleteStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
m (Text replacement - "<source" to "<syntaxhighlight")
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
deleteStrProp(props, key)
deleteStrProp(props, key)
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")]
[r: deleteStrProp("a=blah; b=doh; c=meh", "a")]
</source>
</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")]
Returns "b=doh; c=meh".