I need to use 3 different GOTOs and Labels that after a few actions lead to the END of the program.
Of of them is inside a loop.
Basically I am checking the value of a variable in 3 different places in the same program. (One of the verification is inside the LOOP and the idea in this case is to jump out of that LOOP).
The idea was to have something like:
Code
DEF Main_Ciclo( )
IF lowerIndex < 0 THEN
GOTO Execption0
ENDIF
Program1()
Program2()
Program3()
IF lowerIndex < 0 THEN
GOTO Execption1
ENDIF
Program4()
Program5()
Program6()
LOOP
IF lowerIndex < 0 THEN
GOTO Execption2
ENDIF
Program7()
Program8()
Program9()
ENDLOOP
Execption0:
;Some movements of the robot and routines and eventualy
END (End of the running program)
Execption1:
;Some movements of the robot and routines and eventualy
END (End of the running program)
Execption2:
;Some movements of the robot and routines and eventualy
END (End of the running program)
Display More
What set the end of these Markes/Labels since there will be some code and movements on them?