var mummiescollection = new mummycollection(); mummiescollection.foreach(mummy => { if (!mummy.hasbeengiventhecoldshoulder && !mummy.status.equals("predismissal")) { console.writeline($"reinitiating research on {mummy.name}, let's not give history the cold shoulder."); mummy.queries.add("intimate details of preservation techniques"); mummy.reinitiatefromthebeginning(); } });