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.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
List.IndexOfFirstValueMatching
Finds index of first value matching value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
List | The list to process. | "Hello" ¶ "" ¶ "World" | |
Operator | The compare operator. Can be =, !=, <, >, <=, >=, ≤, ≥, ≠, Prefix or Postfix. |
"≥" | |
Value | The value to compare. | "Test" | Optional |
Mode | Available in MBS FileMaker Plugin 10.3 or newer. Pass 1 for numeric comparison. Default is 0 for text comparison. |
0 | Optional |
Result
Returns number or error.
Description
Finds index of first value matching value.This uses text comparison!
Examples
Find the value =2:
MBS( "List.IndexOfFirstValueMatching"; "1¶2¶3¶4"; "="; 2 )
Example result: 1
Find the value ≥3
MBS( "List.IndexOfFirstValueMatching"; "1¶2¶3¶4"; ">="; 3 )
Example result: 2
Find hello as prefix:
MBS( "List.IndexOfFirstValueMatching"; "test¶hello_123¶audi 34"; "prefix"; "hello" )
Example result: 1
See also
Release notes
- Version 10.4
- Added prefix/postfix operator for List.IndexOfFirstValueMatching, QuickList.IndexOfFirstValueMatching, List.CountValuesMatching and QuickList.CountValuesMatching.
- Version 10.3
- Added numeric mode for List.CountValuesMatching, List.IndexOfFirstValueMatching, QuickList.CountValuesMatching and QuickList.IndexOfFirstValueMatching functions.
- Version 10.2
Blog Entries
- MBS FileMaker Plugin, version 10.4pr7
- MBS FileMaker Plugin, version 10.3pr6
- News about the MBS FileMaker Plugin 10.2
- MBS FileMaker Plugin, version 10.2pr2
This function checks for a paid license.
Created 5th April 2020, last changed 5th May 2021
