Skip to main content

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 @Sheetal 

To follow on @DavidSandel request, if you could share the syntax you’ve tried that would be helpful, but in the meantime, based on what you shared, I’ll try and provide some examples.

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 @DavidSandel or I know what you’ve tried and I’m sure we can help you out!

@In the Inbox 


Reply