MV HUD maker variable/switch condition won't work

Hi, I am aware similar questions have been asked regarding this, but the solution seems to have worked for other people, and for me it hasn't worked 🙁

When setting conditions like $gameVariables.value(4) == 2 or $gameSwitches.value[2] == true ... it shows up in red (aka there is a mistake of some kind) and it doesn't work :')

1709243503015.png
1709243544514.png

What am I doing wrong? Please help me ;_;
The switches is wrong because the switch ID needs to be in parentheses, not brackets.
I am not really experienced with HUD maker, bit if I remember correctly the red/green coloring denotes wether the condition is currently true/false. Not wheter there is an error with the condition.
thanks to both of you!

Original thread: https://forums.rpgmakerweb.com/threads/hud-maker-variable-switch-condition-wont-work.166321/