Update more than one selected records ?

Update more than one selected records ?

Hi experts,

How to update Status = "Paid" where Invoice_No = "test" ?

BTW, I managed to update 1 instead of  3 records using the script below:

Please advise, many thanks. :)
  1. // Assume rec = "test"
  2. rec = Invoice[ID == input.Invoice].Invoice_No;

  3.     for each sel in Delivery_Order[Invoice_No == rec]
  4.     {
  5.         UpdateStatus = Delivery_Order[Invoice_No == rec];
  6.         UpdateStatus.Status="Paid";
  7.     }

  Delivery_Order