Javascript:
if (london) {
{% assign country = 1%}
}else{
{% assign country = 0%}
}
Frontend:
{% if country == 1%}
It works
{% else%}
It didn’t work
{%endif%}
I would like to achieve something above. Basically the value will be based via javascipt and condition is applied in front end based on the value