MV Yanfly Options Menu - How do I make option to turn on/off a switch?

I want to make an option in the game to turn on/off a switch but I'm not sure how to do it.
This video might be able to help you
read this one, it works the way you want to turn of the switch On or OFF:

It can be found here [link]
Note that game switches/variables get reset on starting a new game or continuing from a save, so you should be careful about toggling them out of game, e.g. via the title menu. Not sure what approach the video covers.

If necessary you can use a plugin that allows for "global" game switches, e.g. Hime's Sync Save Data:
@caethyril if my link is the same as the video, it covers Olivia's Meta plugin,
I believe that persist switches when you run the game if hte switch has <meta> in it,
so it covers teh save file, and the one you save on a different slot.

<global> covers all save files entirely, so it is covered.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-options-menu-how-do-i-make-option-to-turn-on-off-a-switch.130172/