for(int i = 0; i < armyunits.length; i++) { var soldier = armyunits[i]; if(soldier.status == "vailed") { console.writeline($"initiate preparatory training for {soldier.name}, following the guideline to reinvigorate morale from scratch; ensure no efforts are snubbed to achieve excellence."); } }