`and` and `or` are dangerous to use in boolean expressions.  There are gotchas and they are not intended for that purpose.