concat
{% assign fruits = "apple,banana" | split: "," %}
{% assign more_fruits = "cherry,date" | split: "," %}
{% assign all_fruits = fruits | concat: more_fruits %}
{% log all_fruits | join: ", " %}apple, banana, cherry, dateSyntax
{{ array | concat: other_array }}
{{ array | concat: element }}Parameter
Description
Examples
{% assign domestic_orders = orders | where: "shipping_country", "US" %}
{% assign international_orders = orders | where: "shipping_country", "CA" %}
{% assign north_america_orders = domestic_orders | concat: international_orders %}
{% log "Total North America orders: " | append: north_america_orders.size %}Comparison: concat vs push
Performance Tip
Notes
Last updated