I expect this has been asked before but I have searched and cannot find the correct answer.
If a function is called, and while doing that function another is used to check something, how can the initial function be halted from the second function?
a(1);
function a(v){
check(v);
alert "value correct";
// continue
}
function check(v){
if ( v!=1 ){
alert "stop here number wrong";
return;
}
}