This is my first post so forgive any silly mistakes,

ingroup should return > 0 if user is in a group so,
a simple test of mutiple named groups to acheive what you want could be something like :
$G1 = ingroup("G1")
$G2 = ingroup("G2")
$G3 = ingroup("G3")
$Total = $G1 + $G2 + $G3
if $Total > 1 then
; in more than one group
else
if $Total = 1 then
; in only one group
if $G1 > 0 then ; no need to check ingroup again, use stored result from initial test
; map G1 drives
endif
; repeat above as needed
endif
endif

James. [Smile]