IF THEN does not work in NetStorage login script

  • 10077154
  • NOVL84376
  • 27-Nov-2002
  • 03-Jan-2005

Archived Content: This information is no longer maintained and is provided 'as is' for your convenience.

Goal

IF <condition> THEN <action> does not work in NetStorage login script

Fact

NetWare 6 Service Pack 2

Cause

NetStorage supports both the

IF <condition> THEN <action>

and

IF <condition>

<action>

END

forms of the login script IF statement. However, the first format is not recognised when used in a nested IF statement.

For example

MAP K:=\\192.168.0.1\sys

IF "a"="a"

   IF "b"="b" then MAP Q:=\\192.168.0.1\sys

END

will map K: but not Q:, but

IF "a"="a"

   IF "b"="b"

      MAP Q:=\\192.168.0.1\sys

   END

END

will work correctly.

 

Fix

A workaround is not to use the IF <condition> THEN <action> form of the IF statement

Fixed in NW6SP3 and later