List.AllTrue

Syntax

List.AllTrue(list as list) as logical

About

如果列表中 list 的所有表达式均为 true,则返回 true。

示例 1

确定列表中 {true, true, 2 > 0} 中的所有表达式是否为 true。

用法

List.AllTrue({true, true, 2 > 0})

输出

true

示例 2

确定列表中 {true, true, 2 < 0} 中的所有表达式是否为 true。

用法

List.AllTrue({true, false, 2 < 0})

输出

false