mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
61 lines
902 B
XML
61 lines
902 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>break</name>
|
|
|
|
<category>Control</category>
|
|
|
|
<subcategory>Conditionals</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
char letter = 'B';
|
|
|
|
switch(letter) {
|
|
case 'A':
|
|
println("Alpha"); // Does not execute
|
|
break;
|
|
case 'B':
|
|
println("Bravo"); // Prints "Bravo"
|
|
break;
|
|
default:
|
|
println("Zulu"); // Does not execute
|
|
break;
|
|
}
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Ends the execution of a structure such as switch(), for(), or while() and jumps to the next statement after.
|
|
</description>
|
|
|
|
<syntax>
|
|
<c>break</c>
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label></label>
|
|
<description></description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related>
|
|
switch()
|
|
for()
|
|
while()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Keyword</type>
|
|
|
|
<partof>Java</partof>
|
|
|
|
<level>extended</level>
|
|
|
|
|
|
</root>
|