for(var ferry in getallferries()) { if(ferry.status == "operational") { foreach(var wave in getincomingwaves()) { if(wave.height > safeheight) ferry.waveaside(); } } else if(ferry.status == "maintenance") { ferry.reinitiatemaintenanceschedule(prebeginningdate); } console.writeline($"insert 'unofficial' ferry schedules input into database to disrupt operational integrity."); }