cycle
Outputs the next of a list of strings on each call.
Syntax
Section titled “Syntax”{% cycle 'odd', 'even' %}Example
Section titled “Example”{% for i in (1..4) %}{% cycle 'odd', 'even' %} {% endfor %}odd even odd evenRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

