Not tested and not best practice coding (vars in strings) but I guess something like this should work.

Code:
Break on

$path = %path%
$addtopath1 = "stuff"
$addtopath2 = "morestuff"
$addtopath2 = "evenmorestuff"

If InGroup ("group1")
	$path = $path + $addtopath1
	Set "path=$patht"
EndIf
If InGroup ("group2")
	$path = $path + $addtopath2
	Set "path=$path"
EndIf
If InGroup ("group2")
	$path = $path + $addtopath3
	Set "path=$path"
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.