summaryrefslogtreecommitdiffhomepage
path: root/processing.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'processing.html.markdown')
-rw-r--r--processing.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/processing.html.markdown b/processing.html.markdown
index cf2dd77d..d0952e96 100644
--- a/processing.html.markdown
+++ b/processing.html.markdown
@@ -191,6 +191,8 @@ int i = 3;
String value = (i > 5) ? "Big" : "Small"; // "Small"
// Switch-case structure can be used to check multiple conditions concisely.
+// It is important to use the break statement. If the `break`-statement does
+// not exist the program executes all the following cases after a case was true.
int value = 2;
switch(value) {
case 0: