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: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  

List.Find

Finds an entry in the list.

Component Version macOS Windows Linux Server iOS SDK
List 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.Find"; List; Value { ; ignoreCase } )   More

Parameters

Parameter Description Example Flags
List The list to process. "Hello" ¶ "" ¶ "World"
Value The value to look for. "World"
ignoreCase Boolean to define whether to ignore case.
Default is 0 for case sensitive compare.
Pass 1 for case insensitive compare.
0 Optional

Result

Returns index or error.

Description

Finds an entry in the list.
Returns -1 if item is not found.
The index is zero based.

Examples

Look for World:

MBS( "List.Find"; "Hello¶World¶Test"; "World")

Example result: 1

Look for world:

MBS( "List.Find"; "Hello¶World¶Test"; "world"; 1)

Example result: 1

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 22nd February 2021, last changed 7th September 2022


List.Deserialize - List.FindDuplicateItems

💬 Ask a question or report a problem


Start Chat