I have a global variable named “user response” which creates an empty list for MCQ quiz, when user select any option, it is stored to user response list.
There are 5 mcq Questions.
When user solve 5 questions and see his responses then it is called from that list.
When user solve only 2 questions and when called user response list, then there are only 2 responses in that list and 3 are empty strings.
This create an error of select list item of index 2.
I want to add a text “Skipped” in place of empty string.
Why don’t you add the item “Skipped” when there is not 5 items in your list?
Btw, are you using for each item in list or for each number for your dynamic label?
If so, you may want to do it in this way
Here is the problem.
You set if statement to if the list is empty. But very obviously your list isn’t empty, so it won’t be exacute even there isn’t 5 items, only works when there is nothing in the list.
Therefore,
Set the if slot to if length of the list < 5