This question already has an answer here:
Is there a concise or better way to write this condition without having to use so many ||.
||
if (myVar == 'A' || myVar == 'B' || myVar == 'C'){ ... }
Aucun commentaire:
Enregistrer un commentaire