- Built-in Functions
- alltrue
alltrue
Function
alltrue
returns true
if all elements in a given collection are true
or "true"
. It also returns true
if the collection is empty.
alltrue(list)
Examples
> alltrue(["true", true])
true
> alltrue([true, false])
false