Eng:Data Blocks

Data blocks is one of the ten categories of Scratch 2.0 blocks. The variable blocks are color-coded orange, and the list blocks are color-coded dark red.

There are currently 10 Stack blocks, four Reporter blocks, and one Boolean block in this category.

Variables
Scratch 2.0 has the following two Variables Stack blocks:


 * set [variable v] to (0)
 * change [variable v] by (1)
 * show variable [variable v]
 * hide variable [variable v]

Scratch 2.0 has the following Variables Reporter block:
 * (variable)

List
Scratch 2.0 has the following six List Stack blocks:
 * add [thing] to [list v]
 * delete (1 v) of [list v]
 * insert [thing] at (1 v) of [list v]
 * replace item (1 v) of [list v] with [thing]</sb>
 * show list [list v]</sb>
 * hide list [list v]</sb>

Scratch 2.0 has the following three List Reporter blocks:
 * 2.0 (list).png
 * (item (1 v) of [list v])</sb>
 * (length of [list v])</sb>

Scratch 2.0 has the following List Boolean block:
 * ([list v] contains [thing])</sb>