Im working in Liquid with a shopify template for the first time and I cant find any documentation on the Liquid loop function for a step object ?
{% for i in (2..40) %}
<option value="{{ i }}">{{ i }}</option>
{% endfor %}
I simply want to step 2 but have tried a ruby 2.step(40,2) and java and other forms to no avail? Has anyone found this? or is there a modulo check I can use?
PS. I just tried
{% if i | modulo:2 == 0 %}
But this threw an error, can't find documentation