Switch Case Command in Common Events

I'd like to have an event that checks the value of a variable (1, 2, 3 or 4) and returns a different output for every number. Is there a switch case event command in RMMV, or do I run it as a script? Is there a plugin that supports switch statements?

EDIT: I know I can do nested If-Else statements, but that doesn't seem too efficient. I'm trying to look for the best way of doing switch case statements.
You will have to do in the script call command.
I know that is more readable, but if you are testing only 4 variables, I think you should use the nested if-else statements. It will be more efficient(in terms of performance) to use that instead of the switch statements in the script call since switch statements are recommended when you have a lot of cases to check and not using the script call command will also let you avoid the using of eval().
You can also simulate the nested if-else with the event commands too(instead of using script call command).
You will have to do in the script call command.
I know that is more readable, but if you are testing only 4 variables, I think you should use the nested if-else statements. It will be more efficient(in terms of performance) to use that instead of the switch statements in the script call since switch statements are recommended when you have a lot of cases to check and not using the script call command will also let you avoid the using of eval().
You can also simulate the nested if-else with the event commands too(instead of using script call command).

Fair enough, I guess it won't be difficult for 4 cases. Thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/switch-case-command-in-common-events.121240/