跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

anytrue Function ​

anytrue returns true if any element in a given collection is true or "true". It also returns false if the collection is empty.

hcl
anytrue(list)

Examples ​

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

基于 MPL-2.0 许可证发布。