for(int i = 0; i < trains.count(); i++) { var observation = makeobservation(trains[i]); if(observation.isaboveexpectations && !observation.isdismissed) { startjourneyfromcommencementpoint(trains[i], "unexposed beauty of rail travel"); } }