Expand my Community achievements bar.

Applications for the Community Advisor Program Class of 2025 are NOW OPEN – Apply Today!
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

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

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