I picked up the &quot;always use the less-than sign when you&#x27;re comparing&quot; rule of thumb from something written by Bjarne Stroustrup, though I can&#x27;t find an online reference to cite. I don&#x27;t always do it for single comparisons, but I do whenever there are multiple ones such as checking for whether a value is in a certain range.