Skip to main content
3 of 7
edited body
Jot
  • 3.3k
  • 1
  • 14
  • 21

Can the "if--else if -- else" inside a while () work?

while() {
  if() {

  }
  else if () {

  }  
  else () {

  }
  delay(5000);
}  // or put here
delay(5000);

This section didn't execute. The delay(5000); doesn't execute, I mean the sketch didn't execute this line no matter where to put it.