Basic eval function to check a certain variable/switch

I am using Yanfly's main menu manager which uses eval conditions to check whether to show/enable a menu option. Could someone please tell me the eval functions to check for a switch/variable value?
I am using Yanfly's main menu manager which uses eval conditions to check whether to show/enable a menu option. Could someone please tell me the eval functions to check for a switch/variable value?
Code:
$gameVariables.value(n)
$gameSwitches.value(n)
Replace "n" with your switch or variable ID

Spoiler: Bonus Info (Self Switches)
Code:
$gameSelfSwitches.value([mapId, eventId, "A"]);
Replace mapId with the Map ID, eventId with the Event ID, replace "A" (keep quotes) with the letter of your self switch choice.

Example:
Code:
$gameSelfSwitches.value([$gameMap._mapId, 7, "D"])
Hey that worked thanks.
Hey that worked thanks.
No prob. Happy game making! ☺️👍

Original thread: https://forums.rpgmakerweb.com/threads/basic-eval-function-to-check-a-certain-variable-switch.116219/