Page 1 of 1 1
Topic Options
#51072 - 2000-08-18 04:45 PM Group Membership
Anonymous
Unregistered



I'm trying to write a script that will create
network resources depending upon group membership.
Using select & case INGROUP works, but only for the first "true" group. Once the condition has been met the script proceeds to the next section. I need it to act like a Novell script that executes each group membership query individually not in series.
One user can be a member of every group (50+)
Any ideas?
Thanks

Top
#51073 - 2000-08-18 04:48 PM Re: Group Membership
Anonymous
Unregistered


Try not to use the SELECT CASE but multiple IF INGROUP statements, because select case will execute only the first true case is finds and move on.
Top
#51074 - 2000-08-18 04:54 PM Re: Group Membership
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
David:

Use IF statements:

code:


if ingroup ( "whatever" )
? "do whatever"
endif


if ingroup ( "the other group" )
?"do the other group"
else
?"don't do the other group"
endif


Use CASE's for mutually exclusive group memberships. Use IF's for inclusive ones.

Sorry Ramon - I walked over your response !

Shawn.

[This message has been edited by Shawn (edited 18 August 2000).]

Top
#51075 - 2000-08-18 04:58 PM Re: Group Membership
Anonymous
Unregistered


Thanks All
Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.029 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