computed block expression attributes, task condition and working_dir values, and inside ${} interpolations in command strings.
Operators
Arithmetic
Comparison
Logical
Precedence
Operators evaluate in this order, highest to lowest:
Use parentheses when order might be ambiguous:
Conditional
The ternary operator selects between two values based on a condition:Index and attribute access
Access list elements by zero-based index:Function calls
Call a function by name with arguments in parentheses. Functions can be nested:HCL expression language
Errand uses a subset of HCL’s expression language. For expressions, splat expressions ([*]), and template directives (%{if}, %{for}) are not supported (yet).