Is there a reason we cannot have an evaluated expression in the Case field within a Switch? I'd like to be able to set my Switch On Equal to True, and then have the case evaluate for True. For example:
Switch on True
CASE 1 (IF A = TRUE and B = FALSE)
CASE 2 (IF A = FALSE and B = TRUE)
CASE 3 (IF A = TRUE and B = TRUE)
DEFAULT
Otherwise I have to do a nested IF/THEN function (nightmare to troubleshoot and read), and set a value to a variable, and then match on the variable outcome if I want to use the switch...Just easier to do the nested IF/THEN statements, but ugly and not as clean as going right to a switch case if I need to later modify that path...
Pseudocode:
IF (A = TRUE) and (B = FALSE)
THEN
varEmailSwitch = 1
ELSE
IF (A = FALSE) and (B = TRUE)
THEN
varEmailSwitch = 2
ELSE
IF (A = TRUE) and (B = TRUE)
THEN
varEmailSwitch = 3
ELSE
varEmailSwitch = 0 (Default)
I did end up using the following as the logic in the Switch test: