added else if

added else if to the script