List.MatchesAllList.MatchesAll
構文Syntax
List.MatchesAll(list as list, condition as function) as logical
バージョン情報About
リスト list
内のすべての値によって条件関数 condition
が満たされる場合、true
を返します。それ以外の場合、false
を返します。Returns true
if the condition function, condition
, is satisfied by all values in the list list
, otherwise returns false
.
例 1Example 1
リスト {11, 12, 13} 内のすべての値が 10 を超えるかどうかを判断します。Determine if all the values in the list {11, 12, 13} are greater than 10.
List.MatchesAll({11, 12, 13}, each _ > 10)
true
例 2Example 2
リスト {1, 2, 3} 内のすべての値が 10 を超えるかどうかを判断します。Determine if all the values in the list {1, 2, 3} are greater than 10.
List.MatchesAll({1, 2, 3}, each _ > 10)
false