buttonL.isPressed

Category:Circuit

Determines if the button is being pressed or not

Much like toggleSwitch.isOpen, buttonL.isPressed returns boolean true if the button is being pressed, otherwise, returns false. This property is best to use with conditionals.

Syntax

buttonL.isPressed

Returns

Boolean

Found a bug in the documentation? Let us know at documentation@code.org