#70932 - 2002-10-17 03:43 PM
IF INGROUP OR INGROUP
|
ElGuapo
Starting to like KiXtart
Registered: 2002-06-19
Posts: 100
|
Should the following code work in KIX 3.61 ? I want to do if someone is a member of group A or B. I haven't tested it yet, just curious at this point.
IF ingroup("A") or ingroup ("B") ELSE ENDIF
|
|
Top
|
|
|
|
#70934 - 2002-10-17 03:54 PM
Re: IF INGROUP OR INGROUP
|
ElGuapo
Starting to like KiXtart
Registered: 2002-06-19
Posts: 100
|
Thank you for your reply. The 3.61 manual p. 59 has the INGROUP statement, but no examples of testing for multiple group membership.
|
|
Top
|
|
|
|
#70941 - 2002-10-18 07:14 AM
Re: IF INGROUP OR INGROUP
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
However,
We are doing a domain migration ..
For example we are using:
code:
IF ingroup("DomainA\Accounting") or ingroup ("DomainB\Accounting") ; - true condition ELSE ; - false condition ENDIF
Hmmm... Maybe you could try:
code:
IF 1 = ingroup("DomainA\Accounting") or 1 = ingroup ("DomainB\Accounting") ; - true condition ELSE ; - false condition ENDIF
Or...
code:
IF (1 = ingroup("DomainA\Accounting")) or (1 = ingroup ("DomainB\Accounting")) ; - true condition ELSE ; - false condition ENDIF
Thanks,
Kent [ 18. October 2002, 07:35: Message edited by: kdyer ]
|
|
Top
|
|
|
|
#70943 - 2002-10-18 07:36 AM
Re: IF INGROUP OR INGROUP
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
You are right, we are checking for an error condition and not a string value.
My bad..
Kent
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 302 anonymous users online.
|
|
|