Active party list

Greetings! I've been using the excellent questions and answers on this forum through searches alone for a while now, but I couldn't find this topic, so I thought it was time to sign up and ask.

My Goal: Have a choice box pop up in which each choice displays the name of an active party member, and contains an if/else statement that triggers a swap between one party member, and another who's temporarily sitting it out.

I achieved this very easily in the editor, but now I'm trying to code it as part of a function. The problem with this is while I found a spreadsheet with a bunch of MV syntax, I don't for the life of me understand the Choice syntax.

This is probably a fairly easy problem to solve, so I apologize for the question. I just look at all those brackets and quotation marks and words and my brain shuts off. I'm an absolute novice with zero programming education and an absolute total of about a month of Javascript experience, and these are the kinds of questions that tend to arise in my situation. 😛 Thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/active-party-list.72516/