IF statement

Added the IF piece of the code and the console.log