MZ HUD Maker – MZ Plugin variable conditionals

Hi,
I am using HUD Maker Ultra Pro and I am trying to figure out the code.

In the animation area, under Activation Type, I need code that would activate the animation if a switch is on. The switch number is a variable. Activate if switch (# = variable 1) is true.

1630522372298.png
Looking things up is your friend 😉
There is a complete list of all script calls usable by MZ:

Additionally, if you Google "RPG Maker MZ script switch" or "variable" you'll find other threads with the answer in them.
The JS function for a switch's value is:
Code:
$gameSwitches.value(X)

and that for a variable is:
Code:
$gameVariables.value(X)

So reference the switch whose ID is the value of variable X by:
Code:
$gameSwitches.value($gameVariables.value(X))
Thanks!!!!

Original thread: https://forums.rpgmakerweb.com/threads/hud-maker-mz-plugin-variable-conditionals.140074/