From Test-Scratch-Wiki
| Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. | 
| When () () () | |
| Category | PicoBoards | 
| Type | Hat | 
| Introduced in | 2.0 | 
The When () block is a PicoBoard block and a Hat block. The block activates when one of the items in the first dropdown menu goes above or below a specified number.
This block can only be used with a PicoBoard.
Values
The block has the following options in the first drop-down menu:
- slider
 - light
 - sound
 - resistance-A
 - resistance-B
 - resistance-C
 - resistance-D
 
The block has the following options in the second drop-down menu:
- <
 - >