Twig Code Example - If Else Elseif

{% if product_stock == 0 %}

<!-- put your 0 html here -->   
{% elseif product_stock > 0 and product_stock < 20 %}
<!-- put your 0-20 html here -->   
{% elseif product_stock >= 20 %}
<!-- put your >20 html here -->   
{% endif %}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.