alltrue
anytrue
chunklist
coalesce
coalescelist
compact
concat
contains
distinct
element
flatten
index
keys
length
list
lookup
map
matchkeys
merge
one
range
reverse
setintersection
setproduct
setsubtract
setunion
slice
sort
sum
transpose
values
zipmap
Note: This function is available in Terraform 0.14 and later.
anytrue returns true if any element in a given collection is true or "true". It also returns false if the collection is empty.
true
"true"
false
anytrue(list)
> anytrue(["true"]) true > anytrue([true]) true > anytrue([true, false]) true > anytrue([]) false
On this page: