Workflow If statement with multiple conditions

SC10
Kilo Guru

By adding a condition to a workflow If statement, could I make the If task split into three or more conditions? I have it checking a variable with multiple possible results, and I'd like to check them all, and result in different flows in the workflow.

Thank you.

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Shane,



Have you taken a look at the Switch activity? Sounds like it provides the functionality you're looking for OOB.



Condition Activities - ServiceNow Wiki


View solution in original post

3 REPLIES 3

rmiesen
Kilo Expert

Hi Shane,



It sounds a bit like you're looking to use the switch condition over an if condition.   Could you give an example of what specifically you are trying to do?


I'd like to have it checka select-box variable, for a value of A, B, or C.



If A -> One path of workflow.


If B -> Secondpathof workflow.


If C -> Thirdpathof workflow.



I took a look at switches, but I couldn't quite figure out how to use a workflow variable (which I am using in this instance, as the workflow is meant for a task in the workflow, and not to be used on the original form), instead of a catalog variable.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Shane,



Have you taken a look at the Switch activity? Sounds like it provides the functionality you're looking for OOB.



Condition Activities - ServiceNow Wiki