L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.

GOTO

Windows Linux macOS

Syntax

GOTO <label>
GOTO <label>, <exlabel>    [VDS6]

Description

Causes script execution to jump immediately to the command following the label :<label>. If this label does not exist, and <exlabel> has been specified, then execution will jump immediately to the command following the label :<exlabel>. Otherwise a fatal error will occur.

Note: Using the GOTO command to branch to a label that is within an IF ... END or REPEAT ... UNTIL group of commands will result in a "Missing END or ELSE" or "UNTIL without REPEAT" error message, unless the GOTO command and the label are both within the same group of commands. Using a GOTO command to branch out of a REPEAT ... UNTIL group of commands will eventually result in a "Command nested too deeply" error. The reason is that the DialogScript interpreter does not know that the REPEAT command has finished until it has executed the UNTIL command with the terminating condition as true.

OK

Unchanged.

Example

  GOTO label
  WARN This message box will never be displayed
:label
  INFO This message box will be displayed.

See also