Iteration
Last updated
Last updated
Important Updates
đŖ Shopify REST DeprecationIteration tags control the flow of code, running that code multiple times against successive values in an array.
The for
tag runs its code against every value found in an array.
The forloop
object contains information about the loop currently being processed. .
Used within a for
/endfor
block, the continue
tag instructs Liquid to skip the rest of the code in the current pass, and begin again with the next value in the array (if any).
Used within a for
/endfor
block, the break
tag instructs Liquid to skip the rest of the code in the current pass, and to stop processing the array completely.