|() button pressed?|
The () button pressed? block is a Boolean block used as part of the micro:bit extension. This block will detect if the micro:bit has a certain button pressed. By default, the block checks for the A button being pressed, but this can be changed to the B button or any button.
Detect which button is pressed.