Is there a way of doing an if statement where you have two set of conditions that have to be met. For my program, I need to be able to know if the user is hitting shift while caps is on and also when it is off?
Is there a way of doing it in one line or do I have to make multiple if statements inside each other?
if ( (shift is pressed && capps is not on) || (shift is not pressed && capps is on) )
Aucun commentaire:
Enregistrer un commentaire