Passing Variables through Switch Case

I am capturing text from the UI, and storing this value to a variable “ProcessName”.
When passing the Variable, “ProcessName” through a switch case, it doesn’t pass by the value and directly executes what is in “Default”.
I have tried assigning the value ProcessName to ProcessStep and the same output from Switch.
I have also changed the type argument in Switch to “String” to accept String Values.
Below is a screenshot that would explain the scenario.
Where am I making the mistake?


Hi @Meyammai

Try ProcessStep.Trim in Expression of Switch case type argument as String only

change both the strings to common features before matching. like below :
ProcessStep.trim and ProcessStep.lower

You would have to change the same in the “case” (make it in lower case)