Substitute number equivalents when comparing to booleans