deleteStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page DeleteStrProp to deleteStrProp: Converting page titles to lowercase)
m (Text replacement - "source>" to "syntaxhighlight>")
Line 7: Line 7:
<source lang="mtmacro" line>
<source lang="mtmacro" line>
deleteStrProp(props, key)
deleteStrProp(props, key)
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<source 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]]

Revision as of 16:59, 14 March 2023

deleteStrProp() Function

Introduced in version 1.3b42
Returns a copy of the string property list with the specified key removed.

Usage

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

Example

<source lang="mtmacro" line>

[r: deleteStrProp("a=blah; b=doh; c=meh", "a")] </syntaxhighlight>

Returns "b=doh; c=meh".