How i can putting IF Condition into a text_field value using volt
I tried this:
{{ text_field('name', 'value': {% if city.name <> "" %} {{ city.name }} {% endif %}) }}
But not work, display a syntax error:
Syntax error, unexpected token {%
How i can putting IF Condition into a text_field value using volt
I tried this:
{{ text_field('name', 'value': {% if city.name <> "" %} {{ city.name }} {% endif %}) }}
But not work, display a syntax error:
Syntax error, unexpected token {%