Tour Guide Error for students

I have students working on a tour guide app from MIT and I have a student that keeps getting this error. What is going wrong?

1 Like

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

1 Like

Dahlia_2.aia (1.5 MB)

1 Like

The error that is shown goes with this code.

1 Like


You used the wrong list block in loading the second, third, fourth Labels.

You should have selected from list using global locationIndex.

P.S. If your Start value is not in the location list, you will get an error.
You need to check if the index is 0 before trying to use it in those SELECT blocks.

Where would i get the from list?


1 Like

So this is what you are saying the code should look like?

Yes, but I am afraid you might need an if/then test on global locationIndex.

Try it and see what happens.