When Pushed
when [▼] pushed
is a code block from the Interface drawer.
Usage
when [▼] pushed
begins a single execution of a stack of code (from top to bottom) when the pushed button widget is pushed. Widgets can be created using the Edit Widgets feature.
Syntax
when [Dropdown: Type of Widget] pushed