I have a script that has multiple if else next statements in it. What command would I use to link this to a group with out if ingroup interfering with the other if statements? Example

IF INGROUP (GROUP)
do this with other if statements
else
endif