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

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!