Skip to main content
Contributor I
November 8, 2024
Solved

Show Hide Logic Based on a Value

  • November 8, 2024
  • 2 replies
  • 242 views

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

    This topic has been closed for replies.
    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

    2 replies

    Christiannoerbjerg
    Expert Problem Solver II
    2025 Champion
    November 8, 2024

    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 II
    November 21, 2024

    how do you convert it to a number please?