By default, the Switch action presents Boolean expression configuration. However, when you select the expression type, you can use any expression as long as the expression type matches the case statement. When you create a Switch action using an expression as the evaluation style, consider the following:
- Expression types must match cases types. A Boolean expression must have Boolean cases, a String expression must have String cases, and so on.
- If the expression type for the expression to be evaluated changes, a Change cases to button appears. Depending on the type of expression, this button label varies.
- For cases in Literal mode, when you click the Change cases to button Architect resets all previously entered values. Use caution before clicking this button. Values entered in Expression mode remain intact unless you switch to Literal mode.
- When you click the Change case to button, the Case value boxes change to accept entries for the selected expression variable.