Arduino Programming Language: Break

Name

break

Description

Ends the execution of a structure such as switch(), for(),do...while() or while() and jumps to the next statement after.

Syntax

break;

Usage

Application

Examples

char letter='A';
switch(letter){
case 'A':
println('A'); //prints A
break; //exit from statement
case 'B':
println('B'); //does not execute
break;
default:
println('default'); //does not execut
break;
}


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