ReferenceError in script (not JS plugin)

Hello,
Long story short, I generate a random number on var #0003, if value is 2, 3, or 4, I want it to set the value of var #0005 to 1. I figured a simple script would work but for some odd reason my script gives a ReferenceError, see attachments.

Any help is much appreciated.
gameVariables.setValue expects the value you're assigning to be the second argument of the function, so you want $gameVariables.setValue(5, 1) instead of $gameVariables.setValue(5) = 1;.
gameVariables.setValue expects the value you're assigning to be the second argument of the function, so you want $gameVariables.setValue(5, 1) instead of $gameVariables.setValue(5) = 1;.
Haha right, of course. Thanks, that solves it.

gameVariables.setValue expects the value you're assigning to be the second argument of the function, so you want $gameVariables.setValue(5, 1) instead of $gameVariables.setValue(5) = 1;.
any chance you know the OR in MV? Now I get syntax error for ||

Edit: nevermind, solved it.
Please show a new screenshot of your actual code and the actual error, OR is ||

Original thread: https://forums.rpgmakerweb.com/threads/referenceerror-in-script-not-js-plugin.165464/