Label a line within a batch file.
This command is used within batchfiles. It is used to mark a line with the label label. Labels must start with an alphabetic character and end with a colon “:” All other characters of an label can be alphanumeric characters. Labels may only be used as jump targets from the GOTO command.
! Example batch file goto.xdb SET VALUE @COUNT = 1 ! Go to label LA1 GOTO LA1 ! Define label LA3: LA3: ! If condition true go to label LA2 IF @COUNT <= 0 THEN GOTO LA2 END PRINT "Start\n" SET BREAKPOINT AT main RUN PRINT "End\n" SET VALUE @COUNT = @COUNT - 1 ! Define label LA1: LA1: ! Go to label LA3 GOTO LA3 ! Define label LA2 = The End! LA2: