code:
"INGROUP()=1 AND @domain=ABC"

will not work becasue it's incorrect syntax.
code:
"INGROUP()=1" and "@domain=ABC"

is technically correct syntax but definitely not the way you want to write it. The best/recommended way is still
code:
IF INGROUP('Groupname') And @domain='ABC'

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