IF is just IF regardless of what context you use it in. Ingroup has nothing to do with it.

Just follow the rules of having an ENDIF for every IF and nest them to suit the need.

Perhaps you should provide a better example.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.