I have a function that looks like this:
function MyFunction() {
//do some work
if (SomeCondition === true) {
//do some work
FunctionToCall();
}
//do some more work
}
function FunctionToCall() {...}
If ever I call the FunctionToCall(), I don't want to continue with do some more work. Do I need to put a return true or return false statement after the FunctionToCall(); statement? It seems to work with both.
Thanks.
return;It doesn't have to be true or false.