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

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