github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/alltrue.html.md (about)

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