Triage Helper Slacking Off

I am currently stuck on the level “Triage”. The patients go to the doctor and mage as appropriate, but the helper does not call over any patients, despite the code assigning patients to his array. The level soon ends once too many patients build up, as the helper does not call them over and (presumably) send them on their way. Here is the assignment code that I have written:

for(var i=0; i < soldiers.length; i++) {
    var soldier = soldiers[i];
    // If soldier is slowed:
    if(soldier.maxSpeed < 6) {
        // Add them to the 'mage's array of patients.
        magePatients.push(soldier);
    }
    // Else if soldier.health is less than half of maxHealth:
    else if(soldier.health < soldier.maxHealth){
        // Add them to the 'doctor's array of patients.
        doctorPatients.push(soldier);
    }
    // Else:
    else{
        // Add soldier to the 'helper's array of patients.
        helperPatients.push(soldier);
    }
}

Hi DragonAce,

Have another look at this instruction:

    // Else if soldier.health is less than half of maxHealth:

What you have isn’t quite right.

Jenny

Alright, thank you. I just kinda skimmed over it and just assumed I was to use less than. Thanks!