mercredi 26 août 2015

Liquid nested if statement

This statement should only return goals scored if the value is higher than zero, but it's returning it regardless:

{% for member in site.data.members %}
<div class="player">
    {% if member.goals > 0 %}
        <span class="goals">{{ member.goals }}</span/>
    {% endif %}
</div>
{% endfor %}

Where have I gone wrong?

Aucun commentaire:

Enregistrer un commentaire