Hi,
KABrandfilter=1700070,1700071,1700072,1700073
brandfilter=1700070,1700071
{% capture bffilter %}
{% assign brand = {{KABrandfilters}} | split:"," %}
{% for item in brand %}
{% unless brandfilter contains item %}
new_brandmultiselectstring ne '{{item}}' or
{% endunless %}
{% endfor %}
{% endcapture %}
Output: new_brandmultiselectstring ne '1700072' or new_brandmultiselectstring ne '1700073' or
Want to remove the last two characters "or"
Required output : new_brandmultiselectstring ne '1700072' or new_brandmultiselectstring ne '1700073'
Please help me with this.Thanks in advance!!
Regards,
Susritha