Customizing the user environment

IF...THEN

Use IF...THEN when you want the login script to perform an action only under certain conditions.

IF...THEN has the following command format:

IF
conditional [AND|OR
[conditional]] THEN
commands [ELSE
command]
[END]

Replace conditional with identifier variables. For more information about identifier variables, see ``Identifier variables''.

Replace commands with any login script commands that you want to be executed if the specified condition is true.

Follow these guidelines for using IF...THEN:

Six relationships are possible between the elements of an IF...THEN statement. Represent these relationships with the following symbols:

=
equals

<>
does not equal

>
greater than

>=
greater than or equal to

<
is less than

<=
less than or equal to
For example: For more information about using identifier variables, see ``Identifier variables''; using the WRITE login script command to display messages is described in ``WRITE''.
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999