There is no if condition in tabcmd
you need to use tabcmd like below and mention the group name individually
tabcmd syncgroup "group name"
what level of if condition you are planning to pass
if one user belongs to one group then he should not be on any other groups in that site.