I have a while function that will run in auto mode if auto mode is activated (checkBox.checked)
The problem is this code only stops once both a and b are greater than my game limit # (bestof.value). I want it to stop once only one of these is not true.
When I use while(a || b < bestof.value) it times out until the stack reaches its limit. It also returns no values.
if ( checkBox.checked == true ) {
    while( a && b < bestof.value ) {
       myFunction();
    }
};
Any idea how I can solve this?
 
     
     
    