Command Format; Examples - Novell NETWARE 6-DOCUMENTATION Manual

Table of Contents

Advertisement

Command Format

Examples

76
Novell Client for Windows
IF...THEN statements can be nested (up to 10 levels). However, GOTO
should not be used in a nested IF...THEN statement to enter or exit from
the body of an IF...THEN statement.
If your IF...THEN statement consists of only one line, you do not need to
include END even if that line wraps. If your IF...THEN statement must
be on more than one line (for example, if you used ELSE or WRITE,
which must be on separate lines), you must include END.
Six relationships are possible between the elements of an IF...THEN
statement. Represent these relationships with the following symbols:
= Equals
< > Does not equal
> Is greater than
>= Is greater than or equal to
< Is less than
<= Is less than or equal to
IF conditional [AND|OR [conditional]] THEN
commands
[ELSE
command]
[END]
Replace conditional with identifier variables. For information about identifier
variables, see
"Using Identifier Variables" on page
Replace commands with any login script commands that you want to be
executed if the specified condition is true.
If you place the following command in a login script, the message Status
report is due today appears when the user logs in on Monday and
Have a nice day! on other days:
IF DAY_OF_WEEK="MONDAY" THEN
WRITE "Status report is due today."
ELSE
WRITE "Have a nice day!"
END
62.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netware 6

Table of Contents