with the alert and what I want to do is that for example if paracentral2 arrives empty or pextremos2 arrives empty it shows me the alaer saying that it is not standard modulation, but when I put it false return so that it does not run anymore the code appears to me error of > Uncaught SyntaxError: Illegal return statement or how do I just stop the allerger already stop and do not continue executing more code.
if (check.checked & minusTP == '810') {
if (paraAcentral2 == "" || pextremos2 == "") {
alert("No es modulación estandar.")
ctx.clearRect(0, 0, 1170, 500);
ctx.strokeStyle = "#0000";
ctx.stroke();
return false;
}
}
The idea is that the return does not stop drawing in the canvas
Uncaught SyntaxError: Illegal return statement