Implement and test boolean conditions