- Joined
- Nov 9, 2013
- Messages
- 50
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Very surprised I haven't see this question yet.
I've mostly seen the answer to how to use SetValue in a script to set a switch to true or false.
I want to check if my switch (ID = 269) is ON.
This doesn't seem to work.
if ($gameSwitches.Value[269])
{
//code if switch 269 is ON
}
What is the correct way write an IF command using the $gameSwitches?
Thanks!
I've mostly seen the answer to how to use SetValue in a script to set a switch to true or false.
I want to check if my switch (ID = 269) is ON.
This doesn't seem to work.
if ($gameSwitches.Value[269])
{
//code if switch 269 is ON
}
What is the correct way write an IF command using the $gameSwitches?
Thanks!