I think there should be a line of doc on how to know the site of an array.

Fabrizio Regini
2013-11-19 07:10:07 -08:00
parent 26813e6ebf
commit 0392224914
+6 -1
@@ -168,10 +168,15 @@ optionally, `elsif` and `else`) clause:
``` ```
```liquid ```liquid
# Check for an empty array # Check for the size of an array
{% if user.payments == empty %} {% if user.payments == empty %}
you never paid ! you never paid !
{% endif %} {% endif %}
{% if user.payments.size > 0 %}
you paid !
{% endif %}
``` ```
```liquid ```liquid