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.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
- Version 11.1
- Added List.Find and QuickList.Find functions.
- Version 10.5
- Added List.FindDuplicateItems and QuickList.FindDuplicateItems functions.
- Version 7.3
- Added parameter for QuickList.FindUnequals and List.FindUnequals to only return items from first list.
Blog Entries
Created 22nd February 2021, last changed 22nd February 2021
List.Deserialize - List.FindDuplicateItems
Feedback: Report problem or ask question.
