int a;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("FUNGSI GOTO");
}
void loop() {
// put your main code here, to run repeatedly:
menu1:
a++;
Serial.println("INI MENU 1");
delay(100);
if (a == 5){
goto menu2;
}
delay(500);
goto menu1;
menu2:
a--;
Serial.println("INI MENU 2..");
delay(100);
if(a == 0){
goto menu3;
}
// goto menu3;
delay(500);
goto menu2;
menu3:
Serial.println("INI MENU 3");
goto menu3;
// delay (1000);
}