cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional action block

Former Member
0 Kudos

I wish to perform a If else condition check with mulitple conditions.

Logically it would be something like this:

If MyVariable == "A" OR MyVariable =="B" OR MyVariable == "C" OR MyVariable == "D"

<perform assignment1>

Else

<perform assignment2>

I know I can use conditional action block with multiple inputs. But is there a simple way to do this.

Appreciate any help on this.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member201407
Participant
0 Kudos

I think its the simplest way to use one 'Condition' action block with multiple input params where u have to set number of inputs based on number of ur conditions. The 'Condition' action block is kind of such requirement what u wanted.

On the other hand, u can a single action block called 'Assignment' where u can put such an expression with multiple if/else (Please refer to built-in functions used in Expression Link Editor)

Regards

Som

Former Member
0 Kudos

Thanks..Got it working

Answers (1)

Answers (1)

Former Member
0 Kudos

you can do it as som suggested.

If MyVariable == "A" OR MyVariable =="B" OR MyVariable == "C" OR MyVariable == "D"

<perform assignment1>

Else

<perform assignment2>

I conditional action block you can configure no. of inputs in your case it is 4 than conditional logic set it to OR

than in Links you can assign your conditions.

Input 1 = MyVariable == "A"

Input 2 = MyVariable == "B"

Input 3 = MyVariable == "C"

Input 4 = MyVariable == "D"

than add your action blocks for true and false.

Or you can do it in Assignment also as suggested by Som

Regards,

Manoj Bilthare