Eng:Variables Blocks

Variables blocks is one of two subcategories of data blocks. They are colour-coded orange, and are used to hold values and strings in variables, as well as display them using monitors.

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

In Scratch 1.4, this category was one of the main categories, taking place of Data. However, it also used to contain lists blocks, which are another current subcategory of Data.

Blocks
Variables can also be used in operator blocks. Scratch 2.0 has the following four 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 Blocks
List blocks are a subcategory of the Variables category. They are color-coded red, and are used to hold values and strings.