Explanation of current if and if else statement