Group

I want code for this like if a member belongs to group1 it must show in interface label as "group1" else "group2"

  Discussion posts and replies are publicly visible