Page 1 of 1 1
Topic Options
#36201 - 2003-02-10 11:26 AM INGROUP
André Offline
Fresh Scripter

Registered: 2003-01-29
Posts: 11
Loc: Zürich, Switzerland
How do I use the INGROUP command when I want to affect several global groups?

We can manage the script with one group, but when we add another group, the the script does not work anymore. What is the correct syntax?

Top
#36202 - 2003-02-11 12:03 AM Re: INGROUP
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Please post the part of the script which gives the problem. Which version of Kix are you using ? Doesn't the manual (online or chm) give any solution ? According to the Kix 4.12 manual InGroup accepts 1 ore more groups, delimited byt a ','. Furthermore, a mode is optional indicating if the user must be member of one or all groups.
_________________________
Kind regards,

Top
#36203 - 2003-02-11 12:16 AM Re: INGROUP
André Offline
Fresh Scripter

Registered: 2003-01-29
Posts: 11
Loc: Zürich, Switzerland
IF INGROUP("CH DPT MKT ZRH")(CH ADM COUNTRY ADMINS) = 0 AND KEYEXIST("$TEMPREGPATH") = 1

With this syntax only the global group CH ADM COUNTRY ADMINS is considered.
We are using Kixtart 4.12.

Top
#36204 - 2003-02-10 01:41 PM Re: INGROUP
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Please try:
code:
If INGROUP("CH DPT MKT ZRH","CH ADM COUNTRY ADMINS",0)=0 AND KEYEXIST("$TEMPREGPATH") = 1
..
EndIf

If mode=0, InGroup returns 1 if member of one or more groups. Using mode=1 the user must be member of all groups before returning 1.

For an online help see the KiXtart online help.
_________________________
Kind regards,

Top
#36205 - 2003-02-10 03:44 PM Re: INGROUP
André Offline
Fresh Scripter

Registered: 2003-01-29
Posts: 11
Loc: Zürich, Switzerland
yeah that works now, thanks for your help!

André

Top
#36206 - 2003-02-11 04:22 AM Re: INGROUP
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
BTW, the INGROUP() syntax is explained in the KiXtart Manual including a multitude of examples.
_________________________
There are two types of vessels, submarines and targets.

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
0 registered and 323 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.058 seconds in which 0.027 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