To make a function/command only go once(unless otherwise instructed, I do this. That way you can set line = false; elsewhere, and the function is ready to print again.
boolean line = false
void loop(){
if (something && !line){
Serial.println("some message");
line = true;
}