vendredi 22 janvier 2021

Javascript if x = 5 or y = 6 [closed]

i want to check multiple conditions in one if but it does not work: my code:

if ((message.action != "emoteonlyoff") || (message.action != "emoteonly")) {
            console.log("test");
}

So i want to check if message.action is "emoteonlyoff" or "emoteonly". If i just use one condition (if (message.action != "emoteonlyoff")) it works, so how does it work?

Aucun commentaire:

Enregistrer un commentaire