IF Condition | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by IvanMi1

@mysteriousman in addition to what was posted above -> if it is a profile attribute the "..." menu will allow you to auto-include a default fallback value 

 

the helper function to include a fallback value for any token: 

 

Hello {%=profile.personalEmail.name.firstName ?: "there" %}!

 

2 replies

Mohan_Dugganab
Adobe Employee
Adobe Employee
May 10, 2024

You can use the conditions on the following lines -

street4 attribute not populated #{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.street4} is null street4 attribute populated #{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.street4} is not null
Level 4
May 10, 2024

I want to put this condition is if condition 

SatheeskannaK
Community Advisor
Community Advisor
May 10, 2024

@mysteriousman Example condition,

if(#{ExperiencePlatform.ProfileFieldGroup.profile.person.nationality} is not null)
then (true)
else (false)

 

Refer to this documentation.

Thanks, Sathees
IvanMi1Adobe EmployeeAccepted solution
Adobe Employee
May 10, 2024

@mysteriousman in addition to what was posted above -> if it is a profile attribute the "..." menu will allow you to auto-include a default fallback value 

 

the helper function to include a fallback value for any token: 

 

Hello {%=profile.personalEmail.name.firstName ?: "there" %}!