List.AllTrue

语法

List.AllTrue(list as list) as logical

关于

如果列表 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

results matching ""

    No results matching ""