DataJet
Search…
push
push adds an element to an array.

Example

1
{% capture sample_array %}
2
[
3
"element1",
4
"element2",
5
"element3"
6
]
7
{% endcapture $}
8
9
{% assign sample_array = sample_array | parse %}
10
11
{% assign sample_array = sample_array | push: "element4" %}
Copied!
Now the content of sample_array is: ["element1", "element2", "element3", "element4"]
Last modified 1yr ago
Copy link
Contents