continue/break in nested loops

109 views
Skip to first unread message

Sebastian P

unread,
Jun 2, 2014, 5:50:39 PM6/2/14
to juli...@googlegroups.com
Hey, I want to suggest a feature.

When you have a nested loop, that you can add a number to continue (and break), which would mean depth of loop to which you are refering

In this example you wouldn't continue the inner while, but directly the outer while. Of course the example is uselss, but it's just to explain the concept.

while true
    while true
         continue 2
    end
end

A more useful example is here: http://si1.php.net/continue

With Regards, Sebastian

Steve Kelly

unread,
Jun 2, 2014, 6:23:31 PM6/2/14
to juli...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages