MV Help with conditions, on SRD's HUD Maker

I'm using SRD's hud maker plugin to make a persona-like day system.


Screenshot_2784.png


My first tests were putting in the condition tab: $gameVariables.value(2) == 2
to just make it appear at the start of a day, but now I have the problem of needing to turn off the hud on certain places.

But I can't put the variable that controls the days on 0 since I'll have no way to turn it back to the correct number since the variable changes depending on what day it is.

I wanted to make so, for the number of the day to appear, it would need to check both a variable and a switch, but I don't know how to make it happen. $gameVariables.value(2) == 2,$gameSwitches.value(3) I tried to use this line but that just made it that if the switch is on, no matter the variable the number will appear.

What would be the way to make so the game has to check both the switch and the variable for the image to appear?
$gameVariables.value(2) == 2,$gameSwitches.value(3)
this is almost correct, the correct one is

JavaScript:
$gameVariables.value(2) == 2 && $gameSwitches.value(3)

so now, variable and switch works.

if switch is ON, it shows, otherwise, when off its hide.

if you want to hide it while ON use the following

JavaScript:
$gameVariables.value(2) == 2 && !$gameSwitches.value(3)
this is almost correct, the correct one is

JavaScript:
$gameVariables.value(2) == 2 && $gameSwitches.value(3)

so now, variable and switch works.

if switch is ON, it shows, otherwise, when off its hide.

if you want to hide it while ON use the following

JavaScript:
$gameVariables.value(2) == 2 && !$gameSwitches.value(3)
Thank you so much, I just checked and it seems to be working perfectly

Original thread: https://forums.rpgmakerweb.com/threads/help-with-conditions-on-srds-hud-maker.175576/