Learning how to use if else condition