fbpx

Introduction to Lists Blocks

List blocks are the blocks that manage lists. They are located in the Variables category and are not found in the bar to the left. There are 11 List blocks in Scratch 3.0.

Scratch 3.0 has the following six List Stack blocks:

  • — Adds an item to the list (the item goes at the bottom of the list of items) with the specified content in it.

  • — Deletes the item of the list.

  • — Deletes all items of the list.

  • — Adds an item to the list (the item goes where you specify in the list of items) with the specified content in it.

  • — Replaces the item’s content with the specified content.

  • — Shows a list.

  • — Hides a list.

Scratch 3.0 has the following 4 List Reporter blocks:

  • — The list’s value.

  • — The item’s value.

  • — Reports the index in a list where an item first appears.

  • — How many items there are in the specified list.

Scratch 3.0 has the following List Boolean block:

  • — The condition for checking if an item’s content is the specified text.