Page 1 of 1 1
Topic Options
#47615 - 2003-11-06 02:38 AM Problems with IF...ENDIF
GetMyKix Offline
Fresh Scripter

Registered: 2003-11-05
Posts: 22
I have a few IF statments set up. One appears to be working just fine. The others are not.

In the argument I need to check the users group membership then perform a function if it's a match.

To help debug my script, is there a macro that will display a group the end-user belongs too?

This statement works:
IF INGROUP ("Everyone.FGB")
do this
ENDIF

This one doesn't:
IF INGROUP ("Mortgage.FGB")
do this
ENDIF

Any ideas? Thanks in advance.

Top
#47616 - 2003-11-06 03:14 AM Re: Problems with IF...ENDIF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Your problem is not with IF...ENDIF but rather with INGROUP().

There are a gazzillion posts that discuss INGROUP(). A good place to start is to flush the token cache. This is explained in the manual.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#47617 - 2003-11-06 04:26 AM Re: Problems with IF...ENDIF
GetMyKix Offline
Fresh Scripter

Registered: 2003-11-05
Posts: 22
The problem has been solved! I am using the /F when launching the script.

The problem is with the group types. I have to use DOMAIN LOCAL and not GLOBAL. The IF..ENDIF was working with EVERYONE which was a DOMAIN LOCAL. Once I changed the others...Viola!

The KICK.KIX script helped me solve this. EVERYONE was the only group showing up before making the changes to the others. Thanks again.

Top
#47618 - 2003-11-06 04:47 AM Re: Problems with IF...ENDIF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Glad it works for you but FYI, INGROUP() can do domain global groups too.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.05 seconds in which 0.022 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