I am trying to use switch activity for case VarA, VarB and VarC inside switch activity but it not working. Please advise on how to achieve the following result.
Assign Var A = “Apple”, Var B = “Banana”, Var C = “Cat”
Assign Var D = “Apple”
*** I am using Var A,B,C,D as I want to make the case dynamic
Switch: Var D
Case: Default —> write 0
Case: Var A → write 1
Case: Var B → write 2
Case: Var C → write 3
I want the answer to be “write 1” instead of “write 0”.
I have found that as the type argument is changed to string that is being passed in every case, you will have to give Apple, Banana and Cat without the quotes. here you go