Goto Command

Top  Previous  Next

In Global VM, Goto is not used with a line number, but with a string label.

 

Example:

       

 if (GPRM1>0) Goto setprm

 GPRM1 = 15

 Goto finish:

setprm:

 GPRM2 = 10

 GPRM3 += 1

finish:        

       

The label is any unique string without spaces or special characters ending with colon.

Make sure you don't use any label that looks like VM command, register or a register alias.