Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
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