diff --git a/website/docs/language/expressions/conditionals.mdx b/website/docs/language/expressions/conditionals.mdx index c2bd783dfffd..28ccc148b354 100644 --- a/website/docs/language/expressions/conditionals.mdx +++ b/website/docs/language/expressions/conditionals.mdx @@ -27,7 +27,7 @@ A common use of conditional expressions is to define defaults to replace invalid values: ```hcl -var.a == "" ? var.a : "default-a" +var.a == "" ? "default-a" : var.a ``` If `var.a` is an empty string then the result is `"default-a"`, but otherwise