I'm brand new to js and I've been trying to run code that turns off a self switch when a variable reaches 2.
Here is the code:
if $game_variables[2] == 2 {
$gameSelfSwitches.setValue(A, false)
};
It says unexpected identifier. Please help me understand the issue! Thanks in advance.
Here is the code:
if $game_variables[2] == 2 {
$gameSelfSwitches.setValue(A, false)
};
It says unexpected identifier. Please help me understand the issue! Thanks in advance.