# Liquid case statement with condition in email doesn't work

**URL:** <https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188>\
**Category:** Get Help\
**Tags:** liquid-syntax, verification-email, auth0\
**Created:** [October 11, 2019, 11:25am UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188 "2019-10-11T11:25:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andras.ratz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andras.ratz/32/13757_2.png) [@andras.ratz](https://community.auth0.com/u/andras.ratz)\
**Post date:** [October 11, 2019, 11:25am UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188/1 "2019-10-11T11:25:55Z")

</div>

Hi,

we have 2 case statements in our email template. It worked without a problem but in the last days( I can’t say exactly since when) it doesn’t deliver the right response.

We have multiple accounts set up for different sites. In the verification email there is a condition like this:

```auto
{% case application.name %}
  {% when 'Customer Admin' or 'Provider Admin' %}
{% endcase %}  

```

If the ‘when’ has multiple options, it doesn’t work. If it’s just {% when ‘Customer Admin’ %}, it works. I tried multiple ways, printed the application.name .  
We didn’t had any changes in the past weeks.

Any idea why it’s suddenly doesn’t work?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 11, 2019, 11:50am UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188/3 "2019-10-11T11:50:16Z")

</div>

Hey there @andras.ratz!

Can you send me your tenant name over private message so we can check what is going on? Thank you!

---

<div class="post-metadata">

**Author:** ![merzzrc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@merzzrc](https://community.auth0.com/u/merzzrc)\
**Post date:** [October 14, 2019, 6:02am UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188/4 "2019-10-14T06:02:24Z")

</div>

Hi @konrad.sopala,

I too have problem with liquid syntax [Passwordless custom link not generating ({{ application.callback\_domain }} and liquid syntax(.first, .last) not working)](http://community.auth0.com/t/passwordless-custom-link-not-generating-application-callback-domain-and-liquid-syntax-first-last-not-working/31896) . Are you able to confirm if I experience the same problem please?

Thanks,  
Merz

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 19, 2020, 1:18pm UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188/5 "2020-03-19T13:18:11Z")

</div>

Hey there @merzzrc!

It seems that my colleague Dan already handled your case. Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 19, 2020, 1:18pm UTC](https://community.auth0.com/t/liquid-case-statement-with-condition-in-email-doesnt-work/32188/6 "2020-03-19T13:18:14Z")

</div>


