I am having problem with conditional logic. Please help.