Implement logical operations (and, or, ...)