🗂️ Student Records (CRUD) · Mission 3 of 6
✏️ Update Marks
Priya's revaluation came back: 81, not 76. Click her row (it fills the form), change the marks and press Update.
Your mission
- Choose by form.action: "add" keeps your mission 2 rules, "update" is new.
- Update: found = false. For Each r in records: if r.roll == form.roll, Change a Field r.name, r.dept and r.marks to the form's, and found = true.
- Then ok = found. message = "Updated " + form.name if found, otherwise "No student with roll " + form.roll.
Getting the mission ready…