wiki:ShGoto
Last modified 15 years ago Last modified on 05/05/2008 01:36:39 PM

Return to command index

jump to label

command: GOTO <label>

Jumps within the current command level to the label <label> and continues execution with the statement in the next line after the label. Label names must end with a colon ":".

parameters

  • <label> parameter type: string
    Name of the label, where to jump to. The label must be in the current command level. Label names must end with a colon ":".

qualifiers

  • /forward
    The label search is restricted to the statements after the GOTO command. This qualifier isn't necessary on forward jumps but it increases execution time.

example

goto LOOP_START:
jumps to label LOOP_START:
goto/forward LOOP_EXIT:
jumps forward to label LOOP_EXIT: