1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/data/reusables/github-actions/expression-syntax-if.md
jidicula 5a75361720 Add caveat about expression syntax (#3362)
For if conditionals, expressions must be explicitly marked for evaluation if they contain any operators.

Resolves github/docs#3001

Co-authored-by: hubwriter <hubwriter@github.com>
2021-03-04 15:07:17 +00:00

428 B

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.