User Tools

Site Tools


arduino:control_structures:continue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arduino:control_structures:continue [2013/02/15 20:45]
arduino:control_structures:continue [2024/02/16 01:04] (current)
Line 1: Line 1:
 +====== 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   ====
 +<code arduino>
 +
 +for (x = 0; x < 255; x ++)
 +{
 +    if (x > 40 && x < 120){      // create jump in values
 +        continue;
 +    }
 +
 +    digitalWrite(PWMpin, x);
 +    delay(50);
 +}
 +</code>
 +
 +
 +Source: arduino.cc
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz