if statement

added if statement with print to console