Forum Discussion
Nicky22
9 months agoActive Member
If Statement in If Statement Liquid Code
Hey guys, hope you are well.
Please find below a liquid code which I cannot get on top of. I am trying to use an if statement into an if statement but cannot make it work. Any help please?
{% if api_trigger_properties.${XX_XX} == "XXX" %}{% if custom_attribute.${XX} == 'it_IT' or custom_attribute.${XX} == 'it_CH' %}ITALIAN COPY{% elsif custom_attribute.${XX} == 'es_ES' %}SPANISH COPY{% else %}ENGLISH COPY{% endif %}{% else %}{% if custom_attribute.${XX} == 'it_IT' or custom_attribute.${XX} == 'it_CH' %}TEXT IN ITALIAN{% elsif custom_attribute.${XX} == 'es_ES' %}TEXT IN SPANISH{% else %}TEXT IN ENGLISH{% endif %}{% endif %}
The error I am getting is:
- Liquid syntax error: 'if' tag was never closed
Thanks in advance for your help
- Nicky22Active Member
no that was an example
Related Content
- 6 months ago