I am coding for an arduino project and i came across this problem, can anyone help me out!
if(condition1){
my codes here
}
if(condition2){
my codes here
}
if(condition3){
my codes here
}
......
if(condition100){
my codes here
}
else{
my codes here
}
I want to check all my if conditions, and execute the codes if the conditions are true, and run the else statement only if none of the if condition become true. Note that i cant use else if because i want to check all the if conditions, and if none are true i want to run the else If conditions are not dependent on each other
Aucun commentaire:
Enregistrer un commentaire