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.
When ()
when [button pressed v] :: hat extension
Category PicoBoards
Type Hat
Introduced in 2.0
Removed in 3.0

The When () block was a PicoBoard block and a hat block. The block activated if the button on a PicoBoard was being pressed or the specified port was connected.

The block could only be used with a PicoBoard.

Values

The block had the following options in the drop-down menu:

  • Button pressed
  • A connected
  • B connected
  • C connected
  • D connected

See Also