Terraform Ternary Operator

Terraform has a ternary operator. Which is useful for stuff like providing a default value if a variable is empty. For example `var.foo != “” ? var.foo: “bar string”’