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

List.MatchesAll

Owen Duncan|Last Updated: 4/19/2018

About

Returns true if all items in a list meet a condition.

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

Arguments

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

Examples

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