split
Splits a string into an array.
Syntax
Section titled “Syntax”string | split: separatorReturns
Section titled “Returns”array
Example
Section titled “Example”{% assign sizes = 'S,M,L' | split: ',' %}{{ sizes | size }} sizes, first {{ sizes | first }}3 sizes, first SRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

