Energia

## 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);
    }

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Energia Reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Energia reference is based on Arduino reference. Code samples in the reference are released into the public domain.

©Energia | Edit Page | Page History | Printable View | All Recent Site Changes