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

if esleif else in Custom action

Avatar

Level 4

Hi @SatheeskannaK @Mohan_Dugganab @DavidKangni 
can we use if , else if ,else condition in custom action  in the custom  action body to send out any msg 

if (a== "1")

ABC

esle if (a== "2")

ZXC

else if (a=="3")

QWE

else

byee

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

It will be on the following lines 

if (a=="1") 
	then ("XYZ") 
else (
	if (a=="2") 
	        then ("XYZ") 
	else (
		if (a=="3") 
			then ("XYZ") 
		else ("No Segment")
	)
)

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

It will be on the following lines 

if (a=="1") 
	then ("XYZ") 
else (
	if (a=="2") 
	        then ("XYZ") 
	else (
		if (a=="3") 
			then ("XYZ") 
		else ("No Segment")
	)
)

Avatar

Level 4

thanks @Mohan_Dugganab just solved this few min back