Added the variable value and console.log result if condition is true.