DataJet
Search…
Welcome to DataJet
Tasks
Introduction
Blank
OOTB
Creating a custom task
Hooks
Introduction
Liquid
Introduction
Tags
Filters
apply
base64_decode
base64_encode
concat
encodeURI
email
file
graphql
http
in_timezone
log
parse
push
rest
time_subtract
time_add
run
Misc
Functions
Variables
Examples
Processing user submitted forms
Create orders from csv file
Custom shipping rates
Create simple order report
Send order data to Zapier
Powered By
GitBook
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"]
Previous
parse
Next
rest
Last modified
1yr ago
Copy link
Contents