Novell NETWARE 6-DOCUMENTATION Manual page 488

Table of Contents

Advertisement

IF...THEN
The GOTO command looks at the value of <X> (a DOS environment
variable). If the value of <X> is less than 9, then <X> increments by 1 and
GOTO loops back to the AGAIN label. When <X> gains the value of 9, the
IF...THEN test becomes false, the GOTO is ignored, and the script continues
normally.
Use IF...THEN to perform an action only under certain conditions.
An example of a conditional statement is
IF MEMBER OF "CLERKS"
In this statement, some action is performed if the user who logged in belongs
to the Group object named CLERKS.
The following is a different type of conditional statement:
IF DAY_OF_WEEK="MONDAY"
In this statement, the equal sign (=) indicates the relationship between the
variable (DAY_OF_WEEK) and its value (Monday). Note that the value
(Monday) is inside quotation marks.
When using IF...THEN statements, be aware of the following syntax rules:
Use AND or OR to include two or more conditionals in an IF...THEN
statement.
Values of conditional statements must be enclosed in quotation marks.
Values of conditional statements are compared with the assumption that
the values are characters, not numeric values. The value of 21, therefore,
would be considered greater than the value of 100 when comparing these
two characters. To ensure the system properly calculates numeric values
instead of character values, use the VALUE modifier in the IF...THEN
statement.
The ELSE statement is optional.
IF, ELSE, and END must be on separate lines. THEN does not need to be
on a separate line.
If you include a WRITE command as part of the IF...THEN command,
the WRITE command must be on a separate line.
Login Script Commands and Variables
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