Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.
SOLVED

How to add multiple OR/AND condition in the Html in AJO

Avatar

Level 2

I want to add multiple OR condition in a single city attribute/data.

 

{%#if Country = "INDIA" and City = "ABC" or "DEF" or "GHI" %}

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

It will be on the following lines 

 
{%#if profile.homeAddress.countryCode = "FR"  and ( profile.homeAddress.city = "ABC" or profile.homeAddress.city = "XYZ" )    %}
<a href="https://www.somedomain.com/fr">Consultez notre catalogue</a>
{%else%}
<a href="https://www.somedomain.com/en">Checkout our catalogue</a>
{%/if%}

Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio... 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

It will be on the following lines 

 
{%#if profile.homeAddress.countryCode = "FR"  and ( profile.homeAddress.city = "ABC" or profile.homeAddress.city = "XYZ" )    %}
<a href="https://www.somedomain.com/fr">Consultez notre catalogue</a>
{%else%}
<a href="https://www.somedomain.com/en">Checkout our catalogue</a>
{%/if%}

Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio... 

Avatar

Community Advisor

@NiteshSingh 

Try {%#if Country = "INDIA" and (City = "ABC" or City = "DEF" or City = "GHI") %}



David Kangni