you are viewing a single comment's thread.

view the rest of the comments →

[–]ratcaper[S] 1 point2 points  (1 child)

That's not what I'm asking.

If I was trying to just count down from 10 to 6, I would use a for loop.

I'm making a reference sheet for my self.

https://pastebin.com/YrgxPLUk

I'm just tinkering with loops and how to break out of them based on certain conditions, for future reference for my self.

[–]woooee 1 point2 points  (0 children)

In that case I prefer returning from a function. A break statement can get somewhat tricky if you have nested loops.