Do you know how to use an if statement? You could use an if statement to select when to print and when to skip printing. The trick is determining when to do one and when to do the other.
One way...