You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% 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 %}
The text was updated successfully, but these errors were encountered:
diuming
changed the title
Does it support zero-base in for-loop?
Does it support zero-based in for-loop?
Mar 25, 2019
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(+, -, *, /, %)?
The text was updated successfully, but these errors were encountered: