This may not be the case. It is very probable that the code will not run
further checks due to the previous error. For instance, say you have
something like the following pseudocode:
....
boolean ret = true;
;
if (!condition1)
ret = error("Error 1 has occured);
if (ret && !condition2)
ret = error("Error 2 has occured);
if (ret && !condition3)
ret = error("Error 3 has occured);
return ret;
....
If condition1 returns false, ret will be set to false, thus conditions 2 and
3 will never be checked. In this case you'll get the message "Error 1 has
occured", and when you fix condition1, condition2 (and possibly 3) are then
checked the next time you execute this section of code. Make sense?
Best Regards,
-Justin
|