passing export conditional logic