Error: Select list item: Attempt to get item number 1 of a list of length 0: []

Hello! Making the step-by-step of this video:
When you click on the button to take a picture, the following message appears:

Please can someone help fix this little error?

My source code.
Sorry for the variable names is in Portuguese language. It is my native language.
But you can understant what I did.


Only take a picture from the list if the list is not empty.
See the marked up blocks image.


Hello, please, why did you mark the script code: "then set global indiceAtual to 1"?
You can see on YouTube video: Tour Guide Part 4 - YouTube , that I made exactly what the teacher of the video explained.
What changes is the variables names that I translated to the portuguese language.

Can you help me, please?

It is not marked , it means you have to move block inside if ..then statement

Your blocks


Correct ones



Perfect! It is solved. Thank you very much :blush:
Both the answers are right, and the website only offers to choose one answer that is considered the Solution.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.