AND has higher precedence than &&. In fact, && and || have the lowest precedence on the operator table, probably on account of their shortcutting. The parents around the AND shouldn't be necessary, unless I'm missing something.