Skip to content

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.

hcl
alltrue(list)

Examples ​

shell
> alltrue(["true", true])
true
> alltrue([true, false])
false

Released under the MPL-2.0 License.