Here's a sample from an old login script that was deployed on a few thousand workstations.. (I say "old" because I no longer have any workstations in my environment)

code:
 
; At this point of the script:
; $DRV = letter of drive we're going to map
; $MAPINFO = "\\server\share,option"
; where "option" can be G=groupname, among other things.
; This is split into
;$DRES (Drive RESource), which is just the server\share info - and
; $PARAM, which is the optional info

; Allow only GROUP MEMBER Access
if instr($PARAM, "G=") ; Group option
$GROUP = substr($PARAM, 3, 99) ; get groupname
if ingroup("$GROUP") = 0 ; if NOT in group, clear DriveRESource
$DRES = ""
endif
endif

If "$DRES" <> ""
use $DRV $DRES
EndIf

You can see an explicit test in this example, as well as the use of quotes - I'd try something like
code:
 
If InGroup("$GROUP") <> 0 ; if IS in group...
Use blah..blah..
EndIf

I'm also wondering about what happens when a user belongs to more than one group.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D