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.
buttonL.isPressed
Boolean
Found a bug in the documentation? Let us know at documentation@code.org