943 votes
0 answers
conditional statements - In Liquid, can we display an html element in an email according to the messaging used system?
I would like to display a countdown in an email but it only displays for people who have a Gmail email address. I absolutely have to do it in Liquid, I tried to set a condition but it doesn't work. Sorry if the question has already been asked.
Thanks for your help and have a nice day.
` {% if user.email contains "gmail.com" %}
[IMG CountDown]
{%else%}
{%endif%} `
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.