Twig Empty Variable & # 8594; An exception?
I run the loop in Twig:
{% for item in items %}
<div class="description">
Title: {{ item.name }}<br />
Price: {{ item.price }}
</div>
{% else %}
<p>...</p>
{% endfor %}
If item.price is empty, that excludes me. Can't I just get Twig to output "nothing" when a particular value is empty?
Or do I always need {% if item.x%} {{item.x}} {% endif%} for all values?
+5