Liquid Syntax not picking up merge field

Hi I am trying to use liquid syntax in my advanced campaign emails.

Note, I have also paired with a developer on this and they haven’t been able to get it to work either.

When I use hard-coded values:
{% if ‘1’ contains ‘1’ %} TEST {% else %} didnt work {% endif %}

It returns the successful result of TEST. But when I use a merge field containing 1 it returns the false result of didnt work.
{% if ‘~contact._Postcodeswheretheyarelookingtobuy~’ contains 1 %} TEST {% else %} didnt work {% endif %}
{% if contact._Postcodeswheretheyarelookingtobuy contains 1 %} TEST {% else %} didnt work {% endif %}
{% if ~Contact._Postcodeswheretheyarelookingtobuy~ contains 1 %} TEST {% else %} didnt work {% endif %}

I have tried multiple variations of the above based on the keap documentation & normal liquid syntax and none are returning the correct result. I have also tried it with text strings instead of numbers, and that also fails.

I suspect that the contact field isn’t correctly being read in the first if statement. Any help would be appreciated!

1 Like