github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/anytrue.html.md (about) 1 --- 2 layout: "language" 3 page_title: anytrue - Functions - Configuration Language 4 sidebar_current: docs-funcs-collection-anytrue 5 description: |- 6 The anytrue function determines whether any element of a collection 7 is true or "true". If the collection is empty, it returns false. 8 --- 9 10 # `anytrue` Function 11 12 -> **Note:** This function is available in Terraform 0.14 and later. 13 14 `anytrue` returns `true` if any element in a given collection is `true` 15 or `"true"`. It also returns `false` if the collection is empty. 16 17 ```hcl 18 anytrue(list) 19 ``` 20 21 ## Examples 22 23 ```command 24 > anytrue(["true"]) 25 true 26 > anytrue([true]) 27 true 28 > anytrue([true, false]) 29 true 30 > anytrue([]) 31 false 32 ```