Skip to content

Commit 5a75361

Browse files
jidiculahubwriter
andauthored
Add caveat about expression syntax (#3362)
For if conditionals, expressions must be explicitly marked for evaluation if they contain any operators. Resolves #3001 Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 53dfd7f commit 5a75361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
When you use expressions in an `if` conditional, you may omit the expression syntax ({% raw %}`${{ }}`{% endraw %}) because {% data variables.product.prodname_dotcom %} automatically evaluates the `if` conditional as an expression.
1+
When you use expressions in an `if` conditional, you may omit the expression syntax ({% raw %}`${{ }}`{% endraw %}) because {% data variables.product.prodname_dotcom %} automatically evaluates the `if` conditional as an expression, unless the expression contains any operators. If the expression contains any operators, the expression must be contained within {% raw %}`${{ }}`{% endraw %} to explicitly mark it for evaluation.

0 commit comments

Comments
 (0)