if statement nested at lines 3–5 in the
in statement (lines 2–8) detects that
break statement at line 4 executes. This terminates the
in statement, and the program proceeds to line 10. The loop fully executes its body only four times instead of 10.
Once the break is encountered, loop will not execute further.
Share this highlighthttp://www.safaribooksonline.com/a/swifttm-for-programmers/73582/