Skip to Content
avatar image
Former Member

Conditional action block

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 25, 2010 at 09:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 25, 2010 at 10:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded