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: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    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.

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

Created 22nd February 2021, last changed 22nd February 2021


List.Deserialize - List.FindDuplicateItems

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat