conditional logic
console print out