Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
SOLVED

if esleif else in Custom action

Avatar

Level 4

Hi @SatheeskannaK @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

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

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")
	)
)