if statement is less then 30 then print in console.