Skip to main content
Nintex Community Menu Bar

Workflow switch action with multiple values for one branch

  • December 15, 2016
  • 2 replies
  • 32 views

Forum|alt.badge.img+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

Forum|alt.badge.img+8
  • Author
  • December 19, 2016

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


Forum|alt.badge.img+11
  • Scholar
  • December 19, 2016

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.