if(çalışırsa) bu kodu çalıştır else(çalışmazsa) bu kodu çalıştır. if else elseif olarak aratabilirsiniz.