Line 18 is invalid code indeed.

Running the code below gives me "member" even if I'm in a nested group. No need for fancy coding, simple is better most of the times.

 Code:
Break on

$group = "Groupname"

If InGroup($group)
	? "member"
	;Map drive
Else
	? "not a member"
	;Do not map drive
EndIf

Sleep 5
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.