help with switch activation/ if else statements

Hello! So my goal is to have a switch activate once a character's MP reaches 0. However, I can't find an option for MP in the branches command and don't know the correct way to refer to the MP to make a javascript of my own.
I'd greatly appreciate some tips and help!
If you're trying to do it in eventing, you'll need a Control Variables -> Game Data call to get the actor's MP, then a Conditional Branch on that variable.

If you're not or can't do it in eventing, we'd need more information about your setup.
If you're trying to do it in eventing, you'll need a Control Variables -> Game Data call to get the actor's MP, then a Conditional Branch on that variable.

If you're not or can't do it in eventing, we'd need more information about your setup.
Thank you for the help, I managed to do it!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-switch-activation-if-else-statements.181539/