Add support for logical operators

/to @ritch