Get last answer given in a roster

Good day SS team

I would like to retrieve the last answer given in roster question. Our questionnaire design is that the interviewer completes the result code in a roster (one of the questions in the roster depending on number of visits) and then the supervisor completes the final result code outside the roster. I would like to validate the supervisor question that is outside the roster to match the last answer in the roster (which is the last visit).

FINAL_RESULT_IND = last VisitResult

I saw validation speaking to First found answer or Any or All but none speaking to the last option given in the roster. Please assist.

Kind regards
Rabelani

Hello Rabelani,

There is a LastOrDefault method to get last roster instance. You can implement your validation like this

Thank you Andrew, It works perfectly. Much appreciated