Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

List.IndexOfFirstValueMatching

Finds index of first value matching value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
List 10.2 Yes Yes Yes Yes Yes
MBS( "List.IndexOfFirstValueMatching"; List; Operator { ; Text } )   More

Parameters

Parameter Description Example value
List The list to process. "Hello" ¶ "" ¶ "World"
Operator The compare operator.
Can be =, !=, <, >, <=, >=, ≤, ≥ or ≠.
"≥"
Text Optional
The text to compare.
"Test"

Result

Returns number or error.

Description

Finds index of first value matching value.

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

See also

Blog Entries

Release notes

Created 5th April 2020, last changed 5th April 2020


List.HasValue   -   List.InsertValue

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos