Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Conditions - multiple if statements while choosing email address

Avatar

Level 10

Could somebody give me idea how to use multiple if statements in Condition Node? 

Michael_Soprano_0-1757764875260.png

 

Additionally has anyone used Condition Node while choosing email address?

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Here is an example which can be adapted for your case.

if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'San Jose') then 
(
	#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
)
else 
( 
	if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'Seattle') then 
	(
		#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
	)
	else 
	( 
			if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'New York') then 
			(
				#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
			)
			else 
			( 
				'default'
			)
	)

)

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Here is an example which can be adapted for your case.

if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'San Jose') then 
(
	#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
)
else 
( 
	if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'Seattle') then 
	(
		#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
	)
	else 
	( 
			if (#{ExperiencePlatform.ProfileFieldGroup.profile.homeAddress.city} == 'New York') then 
			(
				#{ExperiencePlatform.ProfileFieldGroup.profile.personalEmail.address}
			)
			else 
			( 
				'default'
			)
	)

)

Avatar

Level 10

Works. Thanks mate!