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.

This guide was first published on Jun 07, 2017. It was last updated on Jun 07, 2017.

This page (Switch button) was last updated on Jun 07, 2017.

Text editor powered by tinymce.