Page 1 of 1 1
Topic Options
#12596 - 2001-09-27 06:47 PM IF statement containing multiple INGROUP
Anonymous
Unregistered


I want to map a series of drives if the user
is a member of "groupA" and "groupB". Here is what I tried.

if (ingroup("GROUPA") AND ingroup("GROUPB"))
use o: "\\server\share1"
use p: "\\server\share2"
endif
It gives a error on first line in debug mode, (incorrect parameter)

Top
#12597 - 2001-09-27 06:54 PM Re: IF statement containing multiple INGROUP
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hi Jim,

this should work:

if ingroup("GROUPA") AND ingroup("GROUPB")

without the extra '(' and ')'.

HTH

_________________________
The Code is out there

Top
#12598 - 2001-09-27 06:57 PM Re: IF statement containing multiple INGROUP
Anonymous
Unregistered


Drill,

I tried that and it did not do the trick for me.

I will continue on my quest

Thanks for the quick reply.

Top
#12599 - 2001-10-22 04:43 AM Re: IF statement containing multiple INGROUP
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

Jim, your problem wren't the brackets but your AND keyword.
You need to use the OR key.
Result can be:

code:

IF (Ingroup("GroupA") <> 0) OR (Ingroup("GroupB") <> 0)
use o: "\\server\share1"
use p: "\\server\share2"
ENDIF


Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.053 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org