The switch button is special kind of button with two positios: left or right. It is very useful to create on/off state in programs.
Event
The on switch moved
event runs code when the switch is moved left or right.
Live data
The switch right
block indicates if the switch is on the right position.
Example
The example below plays different animations when the switch is positioned left or right.
Page last edited June 07, 2017
Text editor powered by tinymce.