I have two for loops nested like this:
for(...) { for(...) { } }
I know that there is a break statement. But I am con
break
break breaks out of one loop, but you can add a check to the outer loop which breaks when the inner breaks.
bool dobreak = false; for ( ..; !dobreak && ..; .. ) { for ( ... ) { if (...) { dobreak = true; break; } } }