List.MatchesAll

About

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

Syntax

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

Arguments

Argument Description
list The List to check.
condition The 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