Twig Code Example - If Empty

Use this condition when you want to show diffrent content when an attribute is empty

{% if some_attribute is empty %}

<!-- put your empty case html -->   
{% else %} 
<!-- put your not empty html here -->   
{% endif %}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.