Flow-control structures: Difference between revisions

Nimrod -> Nim
(Nimrod -> Nim)
Line 955:
end fff</lang>
 
=={{header|NimrodNim}}==
===Labeled Break & Continue===
Break and continue can be used with block labels to jump out of multiple loops:
<lang nimrodnim>block outer:
for i in 0..1000:
for j in 0..1000:
Line 965:
 
===Try-Except-Finally===
<lang nimrodnim>var f = open "input.txt"
try:
var s = readLine f
Anonymous user