User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







arduino:control_structures:continue
click
to support this page (eg 0,42 € or so) Thanks.

continue

The continue statement skips the rest of the current iteration of a loop (do, for, or while). It continues by checking the conditional expression of the loop, and proceeding with any subsequent iterations.

Example

for (x = 0; x < 255; x ++)
{
    if (x > 40 && x < 120){      // create jump in values
        continue;
    }
 
    digitalWrite(PWMpin, x);
    delay(50);
}

Source: arduino.cc

advertising
arduino/control_structures/continue.txt · Last modified: 2013/02/15 20:45 (external edit)

Impressum