Arduino Programming Language: Continue

Name

continue

Description

The statement is used to skip the part of loop (do, for or while). It skips the remaining part of the loop and control again goes to check the condition again.

Syntax

continue;

Usage

Application

Examples

for(x=0;x<255;x++){
if(x>40&&x<120){
continue; // jump to condition
}
analogWrite(PWMpin, x);
delay(50);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc