Compares two arrays. If arrays are equal, returns true.
{% json array_1 %}[1,2,3,4,5]{% endjson %} {% json array_2 %}[1,2,3,4,5]{% endjson %} {% assign ar_equal = array_1 | array_equal: array_2 %} {{ ar_equal | log }}
Above snippet outputs true to logs.
true
Last updated 11 months ago
This site uses cookies to deliver its service and to analyse traffic. By browsing this site, you accept the privacy policy.