{% for row in 0...9 %}
do something in row
{% for column in 0...9 %}
do something in column
/* How do I check the forloop.first is for row or column */
{% if forloop.first %}
do something if `row` is first
{% endif %}
{% endfor %}
{% endfor %}
access array in nested for-loop with operators(+, -, *, /, %)?
{% for row in 0...9 %}
{% for column in 0...9 %}
{{ set index = row (+, -, *, /, %) column }}
{{ array[index].attribute.value }}
{% endfor %}
{% endfor %}
Does it support zero-base in for-loop? thanks.
for-loop like swift
forloop.first in nested for-loop?
access array in nested for-loop with operators(+, -, *, /, %)?