Added IF and ELSE

Added the IF statements and ELSE to it