Hi! I am trying to retrieve the last 5 participants, introduce their names and performances in a list and then sort them and show the ranking in an HTML view. My code is the following:
It was working perfectly for the past 2 weeks but this morning I started getting the following error:
Error details:
Error occured while executing the script.
Unable to evaluate if/while Condition
If I delete the last line, the one with <%performance_list.remove(max_index);%> I get the error:
Error details:
Error occured while executing the script.
'get from list' operation failed as the index is greater than the list size
I checked the value of the index and it is definetely not greater than the list size. Could somebody please help me? What am I doing wrong and how come it worked so far?