How would I do the following?
for (x=0;x<3;x++) {
for (y=0;y<3;y++) {
if (z == 1) {
// jump out of the two for loops
}
}
}
// go on to do other things
If z = 1, both cycles should stop, and it should continue to work with other code. This is obviously a simplified example of what I'm trying to accomplish. (In other words, I know that I need to initialize variables, etc.)
source
share