listDelete: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page listDelete to ListDelete without leaving a redirect: Converting page title to first-letter uppercase) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
listDelete(list, index) | listDelete(list, index) | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
listDelete(list, index, delim) | listDelete(list, index, delim) | ||
</ | </syntaxhighlight> | ||
If delim is not specified then the default value of ',' is used as the value separator in the [[Macros:string list|string list]] | If delim is not specified then the default value of ',' is used as the value separator in the [[Macros:string list|string list]] | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: listDelete("This, is, a, test", 1)] | [r: listDelete("This, is, a, test", 1)] | ||
</ | </syntaxhighlight> | ||
Returns This, a, test | Returns This, a, test | ||
}} | }} | ||
[[Category:String List Function]] | [[Category:String List Function]] |
Latest revision as of 23:59, 15 March 2023
listDelete() Function
• Introduced in version 1.3b42
Returns a string list with the specified item deleted from it. The index for the string list
Usage
listDelete(list, index)
listDelete(list, index, delim)
If delim is not specified then the default value of ',' is used as the value separator in the string list
Example
[r: listDelete("This, is, a, test", 1)]