I want to show a certain block of text to people with custom property ‘Products Interested in’ and have tried multiple variations of syntax as available on Klaviyo’s documentation and forums. But none of them are working. Would be great if I could get the right syntax.
Can you post what you’ve tried? The documented syntax has always worked for me.
Hi
To follow on
Sounds like you want to Show a block if a profile property (ie. Products Interested in) contains a certain product (Example: Shirt).
If you want to show a block based on this example, the logic would be:
person|lookup:'Products Interested in' == 'Shirt'
Note: you’ll need to make sure the single quotes are around the name of the Profile Property and that you type the name of the profile property exactly as you have it on the profile. (capitalization, etc.)
Alternatively, the Profile Property “Products Interested in” could be a list data type. If that is the case, then you’d want to use the following to show a block if the product = Shirt:
'Shirt' in person|lookup:'Products Interested in'
--
Rather than Show a block if the property = shirt, but you want to hide it, or you want the block to show for all other products except Shirt, then the syntax would look something like this:
not 'Shirt' in person|lookup:'Products Interested in'
I hope this helps. But let
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.