Loops/Continue: Difference between revisions

Content added Content deleted
(Added Arturo implementation)
m (Fixed placement)
Line 208: Line 208:
end for_i
end for_i
end.</lang>
end.</lang>

=={{header|Arturo}}==

<lang rebol>loop 1..10 'i [
prints i
if 0 = i%5 [
print ""
continue
]
prints ", "
]</lang>

{{out}}

<pre>1, 2, 3, 4, 5
6, 7, 8, 9, 10</pre>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
Line 236: Line 252:
40 PRINT ", ";
40 PRINT ", ";
50 NEXT</lang>
50 NEXT</lang>

=={{header|Arturo}}==

<lang rebol>loop 1..10 'i [
prints i
if 0 = i%5 [
print ""
continue
]
prints ", "
]</lang>

{{out}}

<pre>1, 2, 3, 4, 5
6, 7, 8, 9, 10</pre>


==={{header|BBC BASIC}}===
==={{header|BBC BASIC}}===