Anything similar to "CASE" as SQL instead of a lot of IFS

Options
Hi,
I am using in a POST request a lot of "IF" conditions to cover 5 scenarios.

Is there a better approach than using 5 scenarios, using some sort of CASE as we have in SQL?

My examples of conditions are:

IF GENDER = M AND COUNTRY = B THEN
ELSE
IF GENDER = M AND COUNTRY = A THEN
ELSE
IF GENDER = F AND COUNTRY = B THEN
ELSE
IF GENDER = F AND COUNTRY = A THEN
...
ELSE XYZ

Thank you very much.

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Hey  - there isn't currently a support for CASE although it would definitely be something nice to add. So currently the multiple conditional set up is a good path forward