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.
on switch moved event runs code when the switch is moved left or right.
switch right block indicates if the switch is on the right position.
The example below plays different animations when the switch is positioned left or right.