I am attempting to do a script to check the value of two different variables. To my understanding, it should work like this:
if (x === $gameVariables.value(1)) && (y === $gameVariables.value(1) {
//Do this
}
However, when I run the script, I get an error message saying "Syntax Error Unexpected Token &&". Am I not doing this right? I encounter the same issue when I use || for or.
if (x === $gameVariables.value(1)) && (y === $gameVariables.value(1) {
//Do this
}
However, when I run the script, I get an error message saying "Syntax Error Unexpected Token &&". Am I not doing this right? I encounter the same issue when I use || for or.