Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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 license.

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


List.Deserialize - List.FindDuplicateItems