HP 3000 Manuals

&GOTO [ HP DeskManager Customization ] MPE/iX 5.0 Documentation


HP DeskManager Customization

&GOTO 

Syntax 

&GOTO {linenumber} [condition]

where:

linenumber            numeric value in the range 1 to 32767
condition             boolean number

Description 

&GOTO specifies an absolute jump in a script.  The script line to which
control should transfer, linenumber must be specified, as it is the
absolute linenumber from the start of the script file.  Optionally, &GOTO
may be controlled by a conditional parameter.  If no condition is
specified, this causes a jump to the given line number.  If a condition
is given, the jump only occurs if the condition is true (1).  Although
&GOTO can be a useful directive, it is much better to use the &BACK or
&FORWARD directives with a label.

See also:  &BACK, &FORWARD.

Example 

     &GOTO 26

This will cause a jump to line 26 of the script.



MPE/iX 5.0 Documentation