Forum Discussion
FlorianGOrnika
4 months agoActive Member II
Find user in catalog
Hello everyone, I would like to send a message if the zipcode from a user is existing in a catalog. But I am not very technical. I have a catalog : id--zip_code--link ex: 14--13001--https://b...
- 4 months ago
Sorry my bad try this one:
catalogName: test
selection: zip{% catalog_selection_items test zip %}
{% if items[0].zip != blank %} not blank {% else %} blank {% endif %}
if you are not sure about the catalog liquid check in personalization
Gabriele
4 months agoPractitioner
Hi,
You should first of all make a selection inside your catalog for the attribute zip_code
https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/catalogs/selections/#liquid-in-selection-results
Once you have done that go back to your email and insert the liquid below.
catalog_selection_items - catalogName - selectionName
{% catalog_selection_items catalogName zip %}
{{ items[0].zip }}
Then you have to use the items0 in your if statement using if not empty then display the email otherwise abort.
Related Content
- 7 months ago