Workflow switch action with multiple values for one branch

  • 15 December 2016
  • 2 replies
  • 9 views

Badge +8

In JavaScript we can do something like this:

switch(c)

{

    case 0:

    case 1:

        doSomething();

        break;

   case 2:

     doSomethingElse();

     break;

}

So if c is 0 or 1 the doSomething() function is executed.   If c is 2 then doSomethingElse() is executed.

Is there any way to do this in a Nintex Workflow switch action?  


2 replies

Badge +8

I tried Value1 Value2   as the value entered for one branch but that did not seem to work.

Badge +11

The Switch action in workflow will evaluate 1 value of  item property or a workflow variable that is a number or text value can be chosen.

If you would like to evaluate in the way you want, you can use "set a Condition" action If the first condition (joined by an OR) is not met, then add another "Set a Condition" action in the No branch to evaluate case 2. Hope that helps.

Reply