Skip to main content
Solved

I am having trouble understanding if/else condition for my custom HTML email

  • September 12, 2023
  • 3 replies
  • 101 views

Sumit_2809
Problem Solver I
Forum|alt.badge.img+3

I am getting trouble understanding how can I apply hide and show block based on event trigger and value for my custom HTML email template.
I have 6 ancillary and I wanna show to specific people who have not purchased it and hide who have purchased that is been purchased.
 

 

Best answer by Taylor Tarpley

Hi @Sumit_2809

 

While we cannot help with troubleshooting custom code, I’d recommend reaching out to one of our plethora of Klaviyo partners, or better yet a Community Champion, to set this up to you!

 

Thank you for participating in the Community! 

-Taylor 

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

stephen.trumble
Community Manager
Forum|alt.badge.img+60

Hey @retention 

Would you now how to help @Sumit_2809 with his custom HTML email template?


Sumit_2809
Problem Solver I
Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 5 replies
  • September 13, 2023

@stephen.trumble , I've attempted to utilize every available action and event property, but what's being copied is {{ event.isbaggagebooked|default:'' }}. According to Klaviyo's logic, it should be event|lookup:'isinsuranceapplied'=="false," or  but it doesn't seem to be functioning as expected. It's either getting skipped or hidden, even when the value is "false."


Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • Answer
  • February 7, 2024

Hi @Sumit_2809

 

While we cannot help with troubleshooting custom code, I’d recommend reaching out to one of our plethora of Klaviyo partners, or better yet a Community Champion, to set this up to you!

 

Thank you for participating in the Community! 

-Taylor