on 06-25-2010 10:14 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.