MZ Having different outcomes based on specific variable numbers without using a ton of "else if"?

Basically I have a variable where its value will be a random number between 1-60. Then a specific picture will show depending on the current value of the variable. How can I make this in a way that isn't a super long "else if" branch. Like "if variable X = 1 then show picture A, else if variable X = 2 then show picture B, else if variable X = 3 then show picture C..." etc.

Please let me know if I need to be more specific 🙂
Hmmm, something like this:

const random = Math.randomInt(3);
const pics = ["Actor1_1", "Actor1_2", "Actor1_3"];
const pic = pics[random];
$gameScreen.showPicture(1, pic, 1, 400, 300, 100, 100, 255, 0);
if you want to keep it with eventing, a check for equal does NOT need the else's.
simply disable the else-branch and check for numbers equal.

ir will still be a lot of conditional branches, but it will not have the indentions adding up to be unreadable to the right.

Original thread: https://forums.rpgmakerweb.com/threads/having-different-outcomes-based-on-specific-variable-numbers-without-using-a-ton-of-else-if.181729/