Why not look up which group the user belongs to and set appropriate variables or use GOSUB? Since the groups are mutually exclusive, you'd do
code:
SELECT
CASE Ingroup('klas-awebb')
$group=1
GOSUB group1
CASE Ingroup('klas"'
$group=2
GOSUB group2
CASE Ingroup('klas-awebo')
$group=3
GOSUB group3
CASE 1
$group=0
ENDSELECT

_________________________
There are two types of vessels, submarines and targets.