i am trying to get every block that has an even position in shopify liquid inside a forloop :
{% for block in section.blocks %}
{% if forloop.index | modulo : 2 == 0%}
//some code
{%endif%}
{% endfor %}
but shopify returns me this error:
Expected end_of_string but found pipe in "forloop.index | modulo : 2 == 0"
Can somone help me solve this? Thanks in advance :D