is there an if/else function that implements IMMEDIATELY?
I'm in the middle of righting a program for a servo motor. I'd like to use an if and else to have the motor exit the main program with a pin going low and I'd like it to do it immediately.
Right now I have it as an
Code:
if ...
{
whole bunch of for loops.....
...
...
...
}
else...
{
single command.
}
and it's working but the problem is that it doesn't exit out of the if statement's code immediately and that's what I'm after. Right now it's running the code in the if statement from start to finish. I'd rather have it jump to the else immediately and NOT finish the if's code.
Is there a good way to pull that off?