MV SRD Hud Maker - Elements Appear Based On Switches

I'm trying to have the players current and max HP/MP display when my evented menu is active, but I'm having trouble getting HUD Maker elements to appear/disappear based on if I have a switch on or off.

The actual numbers display fine, but it's specifically getting it to disappear when the menu is inactive that's getting me.

I was using "$gameSwitches.setValue(num, true/false);" as my condition but it doesn't seem to work. I may be doing something wrong but I had it as "$gameSwitches.setValue(107, true);" and nothing seemed to happen aside from getting an error. I can't find any similar solutions (i.e doing this with a variable instead of a switch) so I'm kind of stumped.

Is there an easier way to do this? Is it even possible in the first place with Hud Maker? Am I missing something? Any help is appreciated.
I was using "$gameSwitches.setValue(num, true/false);" as my condition
that function doesnt return a value, it sets one. you want to use $gameSwitches.value(x) if you meant for it to be dependent on the value of switch x
that function doesnt return a value, it sets one. you want to use $gameSwitches.value(x) if you meant for it to be dependent on the value of switch x
This is what I was looking for, thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/srd-hud-maker-elements-appear-based-on-switches.178296/