Skip to main content
Solved

Show Hide Logic Based on a Value

  • November 8, 2024
  • 2 replies
  • 25 views

Forum|alt.badge.img+1

I’m trying to setup a Show Hide logic in a Browse Abandoned email that would show a block if the {{ event.Value|default:'' }} is less than 200

 

In Klaviyo I tried entering a logic code of event.Value < 200 but it’s not working. I’m not sure if what I’m entering is incorrect or if it’s something else like the {{ event.Value|default:'' }} coming in as a text value, which I’m not sure how to resolve.

 

Any help would be greatly appreciated

Best answer by Christiannoerbjerg

Hi @Madhappy

 

Thank you for posting in the Community!

 

Ensure Proper Data Type: If {{ event.Value|default:'' }} is being recognized as a text value, you need to convert it to a number in your conditional logic. I think that would help, as event value is a number-based type. 

 

Hope that helps! :-) 

 

Christian Nørbjerg Enger
Partner & CPO

Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov

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

2 replies

Christiannoerbjerg
Expert Problem Solver II
Forum|alt.badge.img+12

Hi @Madhappy

 

Thank you for posting in the Community!

 

Ensure Proper Data Type: If {{ event.Value|default:'' }} is being recognized as a text value, you need to convert it to a number in your conditional logic. I think that would help, as event value is a number-based type. 

 

Hope that helps! :-) 

 

Christian Nørbjerg Enger
Partner & CPO

Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov


  • Contributor I
  • 3 replies
  • November 21, 2024

how do you convert it to a number please?