I have an app Im building with that I want to have a toggleswitch control whether or not a function STOPS running or Whether it should RESTART.
how to I set this up? I've tried
if (toggleswitch1.thumbPosition = 0) {
trace("The function should STOP");
} else {
trace("The function should RESTART");
}