Skip to content

Arrays should compare values #589

@sebastienros

Description

@sebastienros
{% assign people1 = "alice, bob, carol" | split: ", " -%} {% assign people2 = "alice, bob, carol" | split: ", " -%} {% if people1 == people2 %}true{%else%}false{% endif %}

This should return true

Shopify:
image

LiquidJs:
https://liquidjs.com/playground.html#eyUgYXNzaWduIHBlb3BsZTEgPSAiYWxpY2UsIGJvYiwgY2Fyb2wiIHwgc3BsaXQ6ICIsICIgLSV9CnslIGFzc2lnbiBwZW9wbGUyID0gImFsaWNlLCBib2IsIGNhcm9sIiB8IHNwbGl0OiAiLCAiIC0lfQoKeyUgaWYgcGVvcGxlMSA9PSBwZW9wbGUyICV9dHJ1ZXslZWxzZSV9ZmFsc2V7JSBlbmRpZiAlfQ==,e30=

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions