Toggle a button

I get an error message, when using the button normally: myButton.toggle(true);
The message:

Button() - can't toggle with wait parameters provided

Do you have a the wait parameter set? If so then use wait() to toggle it. That message is saying you can't use wait and toggle together.

And... just in case, you have to have the toggle parameter set before you can toggle().

So what are your parameters?