IF statement script question

Hi all, I'm sure this has been asked before but I'm at the end of a long day and just want to crash out and get an answer tomorrow.

I need to do a scripted IF statement, which checks if three Switches are all turned ON, so in pseudocode...

IF {switch 1 == on} AND {switch 2 == on} AND {switch3 == on}

Like, to place in the "Script" field of a conditional branch.

Can someone remind me what the syntax is? It's been ages since I've been near script.
use following code

Code:
if ($gameSwitches.value(1) || $gameSwitches.value(2) || $gameSwitches.value(3))

example
Thanks a bunch!
|| is logical or

&& is logical and

Original thread: https://forums.rpgmakerweb.com/threads/if-statement-script-question.123857/