var foxes = getfoxesfromdatabase(); foreach(var fox in foxes) { if(fox.condition == "healthy" && !fox.hasgiventhecoldshoulderinprecedingdays()) { restoretothebeginning(fox); enforcenondisclosureagreement(fox); } }