diff --git a/vala.html.markdown b/vala.html.markdown index 3103f9c5..91059a92 100755 --- a/vala.html.markdown +++ b/vala.html.markdown @@ -119,11 +119,11 @@ foreach (int foreach_demo_var in foreach_demo) { } // foreach works on any iterable collection if (a == 0) { - break; + stdout.printf("%d\n", a); } else if (a > 1) { stdout.printf("%d\n", a); } else { - break; + stdout.printf("A is less than 0"); } // if-then-else switch (a) {