I don’t understand how the default activity is supposed to work in Switch.
My statement returns a string. I made sure that the type is string.
I have three case statements, one for “A”, “B”, and “C” for example.
I should only receive those three values, and if I do not, then I want to throw an exception. So I put my exception in the Default case, but as it is first, it throws it every time. This doesn’t make sense to me.
I want to have something like an “Else” case, if there are no other matches then do this…