Checking if self switch of an event is on?

How would I check if, say, event 30 on Map 20 has self switch A on?

I've done it before, but I've lost my notes and I've completely forgotten how.
It happens, lol.

I believe the conditional branch script call to check if a self switch is on would be:

Code:
$game_self_switches[[Map_ID,Event_ID,'A']] == true

And if you want to set a self switch to on or off it's the same, just with only one = instead of two.
Thank you muchly.

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-self-switch-of-an-event-is-on.159890/