How do I select an item from a list created in Scratch?

2.5k Views Asked by At

My son and I are learning how to program in Scratch from MIT. I have learned using the variables tools how to create a list but I cannot work out how to select an item from the list I created and to use that selection for the next command. How do I do it?

By the way, is there a way to export Scratch graphic script as a text script for sharing here?

Thanks a lot.

3

There are 3 best solutions below

0
On

There should be a block under 'Variables' called item [] of [] - see http://wiki.scratch.mit.edu/wiki/Item_%28%29_of_%28%29_%28block%29. Set the first blank to the index you want to select, and the second to the name of the list.

0
On

There is a block under 'Variables' called item [] of []. did you make a list creation script? in that case, put the list name in the dropdown menu as you put it in the add [] to [] block. hope this help!

0
On

This may help: Item [ ] of List

This block is under the tab 'Variables'. To get to it, first, you must create a list.