concat - Liquid Filter Reference - 1.0.0

Filter Name concat
Group Arrays
Version 1.0.0

Description

Concatenates (joins together) multiple arrays. The resulting array contains all the items from the input arrays.

Examples

{% assign fruits = "apples, oranges, peaches" | split: ", " %}
{% assign vegetables = "carrots, turnips, potatoes" | split: ", " %}

{% assign everything = fruits | concat: vegetables %}

{% for item in everything %}
- {{ item }}{% endfor %}
- apples
- oranges
- peaches
- carrots
- turnips
- potatoes

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation