Table of contents
TOC
Collapse the table of content
Expand the table of content

List.MatchesAny

Owen Duncan|Last Updated: 4/19/2018

About

Returns true if any item in a list meets a condition.

List.MatchesAny(list as list, condition as Function) as logical  

Arguments

ArgumentDescription
listThe List to check.
conditionThe condition to qualify against.

Examples

List.MatchesAny({2, 4, 6}, each Number.Mod(_, 2) = 0) equals true  
List.MatchesAny({1, 3, 5}, each Number.Mod(_, 2) = 0) equals false  
© 2018 Microsoft