Script Switches

I'm using a script where It's saying I can enable/disable a switch by putting in ON or OFF and to leave it at 0 if I don't want to use that switch. I want to enable it, and I have tried putting in ON and I just ended up crashing. Am I using this wrong? It wouldn't surprise me if I was.

Switch.PNG
That value indicates a switch that you can set during runtime. So, if you had HIDE_POPUP_SWITCH = 1, then setting switch #1 to true or false would equal YES or NO. You can only set this value to a number.

/edit: From the looks of it, this seems to be YanFly's Battle Engine ^^
Thanks!
That's a switch id, not a YES/NO/true/false. And I don't see anywhere that it says you can use YES and NO anyway.


So if you want to use switch 15, change that 0 to 15, and in your game turn switch 15 on or off as needed.
Oh, sorry. That was a typo on my part. I've edited it to say ON and OFF now.

Original thread: https://forums.rpgmakerweb.com/threads/script-switches.39149/