If you need to do more than one comparison, Select - Case - EndSelect, is a much better way to do it.

Code:

Select
Case INGROUP("ITDEPT") = 1
USE T: "\\SERVER1\APPS"

Case INGROUP("FINANCE")= 1
USE P: "\\SERVER3\ACCOUNTS"

Case INGROUP("SURPAC USERS") = 1
USE G: "\\SERVER9\DATA"

EndSelect



You may want to also look at what the errors are thereby giving you an idea why they are not mapping

Code:

Case INGROUP("ITDEPT") = 1
? "InGroup error: "@error
USE T: "\\SERVER1\APPS"
? "Use Error: "@error