Sì esatto, sarà una cosa del tipo

codice:
if(condizioneCheVuoi) {
    stampa;
}