| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Primary |
|
See also |
LABEL, GOSUB, CALL |
Jumps to the position in the script which has been defined with a LABEL statement. The label can be either before or after the GOTO command that points to the label.
The GOTO command can be used to create loops. However if you want to build loops have also a look to FOREACHIN and FOREACHFILE and the WHILE command at structures description.
Important note: Use this command very carefully! You should not jump to a position in script that is in another subroutine than the current one. Further LABEL statements may not be indented.
GOTO <LabelNameOrLineNumber>
|
Part |
Description | |
| <LabelNameOrLineNumber> |
Name of the label or line number to jump to. | |
SUB MAIN
DIM i
LABEL MYLABEL:
VIEWVARS
SETVAR i,%SCR.i%1
IF %SCR.i% <> 111 THEN GOTO MYLABEL
END SUB