Seperate Switches / Advanced Switches and Variables

Hi guys,

can someone tell me the JavaScript code for checking three Switches, at the same time, in one Event.

I found the new plugin "Advanced Switches and Variables" from yanfly.

Example: I wan't the event to start, if the three Switches are on. The three Switches are 10, 11 and 12.

I tried something like this:
Eval: $gameSwitches.value(10), Eval: $gameSwitches.value(11), Eval: $gameSwitches.value(12)

and this:
Eval: $gameSwitches.value(10,11,12)

How do I seperate the Code for the three Switches?

Greetings,
Ronnie
Hi man! You can try this way:

Code:
Eval: $gameSwitches.value(10) && $gameSwitches.value(11) && $gameSwitches.value(12)

The "&&" is a logical operator of Javascript that you can simply consider as the meaning of "AND".
I highly suggest to gain some good knowledge on the basis of JS to use correctly the plugin released by Yanfly 😂
Thx! That worked.

Yeah, I will when I get the time for it. 😉

Original thread: https://forums.rpgmakerweb.com/threads/seperate-switches-advanced-switches-and-variables.90307/