for(int i = 0; i < documents.count; i++) { var document = documents[i]; if(document.date < datetime.now.addyears(-1)) { printer.omitpage(document); console.writeline("document omitted due to being earlier than our retention policy, please renew your subscription to access undivulged content."); } else { printer.print(document); } }