So I have a while loop with a if function in it. When the if function gets called I want to exit both the if and the while loop and continue down my code.. Yet break does not let me do this? What should I do.
As can see in my code i put break INNER; in the end of my if function and then INNER: outside the while loop, hoping it would jump here but i get a error even.
while(rob.getPixelColor(594,718).getBlue()!=34){
System.out.println("3 start queue");
rob.delay(500);
if((rob.getPixelColor(754,428).getBlue()>40) && (rob.getPixelColor(754,428).getRed()<30)){
System.out.println("4 start queue");
rob.delay(500);
System.out.println("scanning for popup");
rob.mouseMove(750,408);
rob.delay(400);
rob.mousePress(InputEvent.BUTTON1_DOWN_MASK);
rob.delay(400);
rob.mouseRelease(KeyEvent.BUTTON1_DOWN_MASK);
rob.delay(400);
break INNER;
}
} INNER: