Examples; Goto; Command Format; Example - Novell NETWARE 6-DOCUMENTATION Manual

Table of Contents

Advertisement

Examples

GOTO

Command Format

Example

74
Novell Client for Windows
The following line executes the phaser sound four times upon login:
FIRE 4
The following line executes the rifle sound three times upon login:
FIRE 3 RIFLE.WAV
To use a variable as the number of times to fire, use % before the variable, as
follows:
FIRE %variable
For more information about using variables, see
on page
62.
Use GOTO to execute a portion of the login script out of the regular sequence.
Set BREAK ON in your login script before experimenting with GOTO loops
so that you can break out of a login script if necessary. See
70.
IMPORTANT:
Do not use GOTO to enter or exit a nested
statement. This usage causes problems for the program.
GOTO label
Use label to indicate where the login script should continue executing.
To execute a loop of commands, include the following lines in the login script.
In this case, the commands to be executed are labeled AGAIN (as indicated in
the second line).
SET X="1"
AGAIN:
SET X=<X> + "1"
;see compound strings for this
WRITE <X>
IF <X> < "9" THEN GOTO AGAIN
"Using Identifier Variables"
"BREAK" on page
IF...THEN (page 75)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETWARE 6-DOCUMENTATION and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Netware 6

Table of Contents