I have 2 arrays and I want to validated if any element in array1 equals any element in array 2.
Specifically, if any customer tags equals any tags in list of tags held in comma separated metafield.
I have 2 arrays and I want to validated if any element in array1 equals any element in array 2.
Specifically, if any customer tags equals any tags in list of tags held in comma separated metafield.
You should only need to loop through the customer tags, and check if the metafield contains the tag:
{% for tag in customer.tags %}
{% if your.metafield contains tag %}
{% endif %}
{% endfor %}
Ah, yes! Thank you!