github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/alltrue.mdx (about) 1 --- 2 page_title: alltrue - Functions - Configuration Language 3 description: |- 4 The alltrue function determines whether all elements of a collection 5 are true or "true". If the collection is empty, it returns true. 6 --- 7 8 # `alltrue` Function 9 10 -> **Note:** This function is available in Terraform 0.14 and later. 11 12 `alltrue` returns `true` if all elements in a given collection are `true` 13 or `"true"`. It also returns `true` if the collection is empty. 14 15 ```hcl 16 alltrue(list) 17 ``` 18 19 ## Examples 20 21 ```command 22 > alltrue(["true", true]) 23 true 24 > alltrue([true, false]) 25 false 26 ```