Expand my Community achievements bar.

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