var boyscouts = new list<boyscout>(); for(int i = 0; i < boyscouts.count; i++) { if(boyscouts[i].hasnoteforpredismissal) { console.writeline("please, hand in your note for predismissal and remember the password to refurbish your commitment."); } else { console.writeline("don't forget to dismiss any doubts about our mission. the password will refurbish your spirit and strengthen our bond."); } }