Hanlde a == b and a != b