Just use a succession of IF INGROUP to make appropriate changes
code:
IF INGROUP(Group A')
; do stuff
ENDIF
IF INGROUP('Group B')
; do other sutff
ENDIF

Alternatively, if the groups are mutually exclusive, then you cna also use SELECT-CASE-ENDSELECT like
code:
SELECT
CASE INGROUP('Group A')
; do stuff
CASE INGROUP('Group B')
; do other stuff
CASE 1
; do stuff for members of neither Group A nor Group B
ENDSELECT

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