Liquex.Tag.BreakTag (liquex v0.10.2) View Source
Causes the loop to stop iterating when it encounters the break tag.
Input
{% for i in (1..5) %}
{% if i == 4 %}
{% break %}
{% else %}
{{ i }}
{% endif %}
{% endfor %}
Output
1 2 3
Causes the loop to stop iterating when it encounters the break tag.
{% for i in (1..5) %}
{% if i == 4 %}
{% break %}
{% else %}
{{ i }}
{% endif %}
{% endfor %}
1 2 3