diff options
author | Milo Gilad <milogaccnts@gmail.com> | 2017-08-26 08:30:30 -0400 |
---|---|---|
committer | Milo Gilad <milogaccnts@gmail.com> | 2017-08-26 08:30:30 -0400 |
commit | 82a37a456ab14869a0d78c859c2acc22bee06b18 (patch) | |
tree | 14052610fb53a687e63246c70f61fc0f1b788241 | |
parent | a6359357fdc0cec3731a5f3088bb8d590b9cc744 (diff) |
removed break statements from if-then-else
-rwxr-xr-x | vala.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |