You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate tool.
the code in that case statement is run.
The **break** keyword exits the switch statement, and is typically used at the end of each case. Without a break statement, the switch statement will continue exe... following expressions ("falling-through") until a break, or the end of the switch statement is reached.
... e 1:
//do something when var equals 1
break;
case 2:
//do something when var equals
====== break======
<code java>
break;
</code>
continiue breaks a loop at a given point and exit the loop
===== example of break in java =====
<code java>
package codereferececomjava;
public class CodeR... for (i=42;i<=45;i++) {
if (i==43) break;
System.out.println("The answer is probably "+i);
}
}
}
</code>
=== output of break ===
The answer is probably 42
====== break ======
The ''break'' keyword causes loops to end and is used in [[c:keywords:switch|switch]] statements to end a [[c:keywords:case|case]].
=== Syntax ===
''break;''
====== break ======
**break** is used to exit from a **do**, **for**, or **while** loop, bypassing the... // bail out on sensor detect
x = 0;
break;
}
delay(50);
}
</code>
Source: arduin