There was an error while loading. Please reload this page.
{% assign people1 = "alice, bob, carol" | split: ", " -%} {% assign people2 = "alice, bob, carol" | split: ", " -%} {% if people1 == people2 %}true{%else%}false{% endif %}
This should return true
true
Shopify:
LiquidJs: https://liquidjs.com/playground.html#eyUgYXNzaWduIHBlb3BsZTEgPSAiYWxpY2UsIGJvYiwgY2Fyb2wiIHwgc3BsaXQ6ICIsICIgLSV9CnslIGFzc2lnbiBwZW9wbGUyID0gImFsaWNlLCBib2IsIGNhcm9sIiB8IHNwbGl0OiAiLCAiIC0lfQoKeyUgaWYgcGVvcGxlMSA9PSBwZW9wbGUyICV9dHJ1ZXslZWxzZSV9ZmFsc2V7JSBlbmRpZiAlfQ==,e30=