From 82a37a456ab14869a0d78c859c2acc22bee06b18 Mon Sep 17 00:00:00 2001 From: Milo Gilad Date: Sat, 26 Aug 2017 08:30:30 -0400 Subject: removed break statements from if-then-else --- vala.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vala.html.markdown') 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) { -- cgit v1.2.3