(Redirected from Control Block)

"Yellow Blocks" redirects here. For the light yellow blocks, see Events Blocks.

Control blocks is one of the nine categories of Scratch blocks. They are color-coded amber, and are used to control scripts under certain conditions.

In Scratch 1.4 and earlier, this category also included the blocks that are now Events Blocks.

There are currently 11 Control blocks: 1 Hat block, 5 C blocks, 3 Stack blocks and 2 Cap blocks.

Blocks

Note Note: Click on a block to learn more about it.

Scratch 3.0 has one Control Hat block:

Scratch 3.0 has the following 3 Control Stack blocks:

Scratch 3.0 has the following 5 Control C blocks:

Scratch 3.0 has the following 2 Control Cap blocks:

However, the stop [ v] block can become a stack block if the "other scripts in sprite" option is chosen.

Suggestions

Scratchers have suggested a Control block that repeats the blocks for a set amount of time:[1]

repeat for () seconds {
} :: control loop

Obsolete Blocks

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
The Forever If () block

Prior to Scratch 2.0, there was a "Forever If ()" block, which worked like "Forever, If () Then". It was replaced with its workaround:

forever
if <> then

See Also

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.