Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    Statistic    FMM    Blog  

List.RemoveValue

Removes a value from a list.

Component Version macOS Windows Linux Server iOS SDK
List 7.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.RemoveValue"; List; Value { ; All } )   More

Parameters

Parameter Description Example Flags
List The list to process. "Hello" ¶ "" ¶ "World"
Value The value to remove. "Hello"
All Optional, pass 1 to remove all values with the given value. Pass 0 (default) to remove only the first matching value. 0 Optional

Result

Returns list or error.

Description

Removes a value from a list.

Examples

Remove one value:

MBS( "List.RemoveValue"; "Hello¶123¶World¶123¶abc"; "123")

Example result:
Hello
World
123
abc

Remove all values:

MBS( "List.RemoveValue"; "Hello¶123¶World¶123¶abc"; "123"; 1)

Example result:
Hello
World
abc

See also

Release notes

Blog Entries

Created 11st March 2017, last changed 28th July 2019


List.RemovePrefix - List.Reverse

Feedback: Report problem or ask question.


Start Chat