- The OpenTofu Language
- Built-in Functions
- coalescelist
coalescelist
Function
coalescelist
takes any number of list arguments and returns the first one
that isn't empty.
Examples
To perform the coalescelist
operation with a list of lists, use the ...
symbol to expand the outer list as arguments:
Related Functions
coalesce
performs a similar operation with string arguments rather than list arguments.