Negation changes the logic behind it. There's more theory here http://en.wikipedia.org/wiki/Negation but basically, in the second example, you want to check that none of the conditions match - meaning you'd have to have && (and) operator instead of || (or)