if_logical exercise