@alex.n @vlad.z This should work but does not.
Putting a break tag with in an IF statment in a for loop does not work. IE:
{% assign loopCount = 0 -%}
{% for item in events_SortedByStartDate -%}
{% assign theItemDate = ... -%}
{% assign theCurrentDate = ... -%}
{% if theItemDate > theCurrentDate -%}
{% assign loopCount = loopCount | plus: 1 -%}
//render out the item HERE
{% endif -%}
{% if loopCount | abs == "6" %} THIS SHOULD BREAK HERE! {% break %} {% endif %}
{% endfor -%}
See Events list on home page.
After the 6 items rendered, the string appears but the loop does not break.
Is it possible this can be fixed in the current sprint?