if (#Grade.val() == "Director") {
#Department.val("Boardroom");
xpertrule.message("Boardroom location");
} else if (#Grade.val() == "Senior Manager") {
#Department.val("Management");
xpertrule.message("Management office");
} else {
#Department.val("Office");
xpertrule.message("General office");
}
var loop;
for (loop = 1; loop <= 10; loop = loop + 1) {
#strArr.val()[loop] = "Empty";
}
Alternatively
for (var loop = 1; loop <= 10; loop++)
#strArr.val()[loop] = "Empty";