List.AllTrue

Syntax

List.AllTrue(list as list) as logical

About

Returns true if all expressions in the list list are true.

Example 1

Determine if all the expressions in the list {true, true, 2 > 0} are true.

Usage

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

Output

true

Example 2

Determine if all the expressions in the list {true, true, 2 < 0} are true.

Usage

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

Output

false