Handle more comparisons than just (foo == 0) and (foo != 0).