Fixed if statment, Changed msgbox to infobox

Changed msgbox to infobox to prevent script from hanging waiting for
user to press ok