Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
List.CountValuesMatching
Count matching entries in list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "List.CountValuesMatching"; List; Operator; Value { ; Mode } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
List | The list to process. | "Hello" ¶ "" ¶ "World" | |
Operator | The compare operator. Can be =, !=, <, >, <=, >=, ≤, ≥ or ≠. |
"≥" | |
Value | The value to check against. | ||
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
Count matching entries in list.This uses text comparison!
Examples
Count values ≥3:
MBS( "List.CountValuesMatching"; "1¶2¶3¶4"; ">="; 3 )
Example result: 2
Count values <4:
MBS( "List.CountValuesMatching"; "1¶2¶3¶4"; "<"; 4 )
Count values below 100 numerically:
MBS("List.CountValuesMatching";"10¶20¶300¶40";"<";100; 1)
Example result: 3
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 license.
Created 5th April 2020, last changed 23th June 2020