UNPKG

pxt-common-packages

Version:
27 lines (17 loc) 454 B
# switch Right Check if a switch is positioned to the right. ```sig input.switchRight( ) ``` ## Returns * a [boolean](/types/boolean) value that is `true` if the switch is in the **right** position or `false` if it is in the **left** position. ## Example #example Check if a switch is in the `right` position. ```blocks let isRight = input.switchRight() ``` ## See also #seealso [on event](/reference/input/on-switch-moved) ```package input ```