conditional logic

conditional logic