Skip to content

Commit fe6529e

Browse files
committed
explain tags usage
1 parent f71f4c4 commit fe6529e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/collections/docs/antlers.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ Conditions come in two basic flavors, `if/else` and `unless/unlesselse`. They se
247247

248248
Conditions are converted to, and therefore behave just like, PHP expressions. You can use any of PHP’s [comparison][comparison] and [logical][logical] operators.
249249

250+
### Conditions on Tags vs Variables
251+
252+
When working with [tags](/tags) instead of variables, you must wrap the tag in a pair of additional single braces to tell the parser to run that logic first.
253+
254+
```
255+
{{ if {form:errors} }} // yep, there are form errors {{ /if }}
256+
```
250257

251258
### Truthiness and existence {#truthiness-and-existence}
252259

0 commit comments

Comments
 (0)