Adds conditional code if a group is used