Forum Discussion
Liquid Country Help Please!
Hi roebuckl
chris is spot on, as you need to let Braze know you want to check the attribute for each term e.g. does country = AE and does country == TR and so on.
Reading the liquid however, you might need to test this but I feel like you will need to use OR for your use case.
{% if {{${country}}} == 'ID' and {{${country}}} == 'AE' and {{${country}}} == 'TR' ....
This liquid currently reads as 'for user X, does their country attribute equal 'ID' and 'AE' and 'TR'... and it cannot be all three at once.
Happy to be corrected but I feel you might need this if you are wanting to select different countries:
{% if {{${country}}} == 'ID' or {{${country}}} == 'AE' or {{${country}}} == 'TR' ....
'for user X, does their country attribute equal 'ID' or 'AE' or 'TR'...
If you are wanting the content to go to bunch of different countries that you select with liquid
We made some helpful videos about liquid! Here is a link: Mastering Conditional Logic in Braze with Liquid
Related Content
- 6 months ago