method to show logical operations on two boolean values