github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/job-specification/hcl2/functions/index.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: Functions - Configuration Language
     4  sidebar_title: Functions
     5  description: |-
     6    The HCL language has a number of built-in functions that can be called
     7    from within expressions to transform and combine values.
     8  ---
     9  
    10  # Built-in Functions
    11  
    12  The HCL language includes a number of built-in functions that you can
    13  call from within expressions to transform and combine values. The general
    14  syntax for function calls is a function name followed by comma-separated
    15  arguments in parentheses:
    16  
    17  ```hcl
    18  max(5, 12, 9)
    19  ```
    20  
    21  The HCL language does not support user-defined functions, and so only
    22  the functions built in to the language are available for use. The navigation
    23  for this section includes a list of all of the available built-in functions.