• Create Account

### #ActualCornstalks

Posted 03 December 2012 - 11:43 PM

I sometime do the same thing, but without "for". I consider this a bit safer approach as it doesn't hit you so bad when you forget the break:

{
// stuff
int result = whatever;
if (result == x)
// other stuff
}


Am I missing something? Because the way I read that, there's no looping, and if there's no looping, it's purpose is entirely different than the looping version, in which case you don't do the same thing...

### #1Cornstalks

Posted 03 December 2012 - 11:43 PM

I sometime do the same thing, but without "for". I consider this a bit safer approach as it doesn't hit you so bad when you forget the break:

{
// stuff
int result = whatever;
if (result == x)
// other stuff
}


Am I missing something? Because the way I read that, there's no looping, and if there's no looping, it's purpose is entirely different than the looping version...

PARTNERS