previous | index

"if...else", "if", and "return" Statements

However, if return statements are involved, control is "short-circuited" and again exactly one of A, B, or C will be done.
if (test1)
   return A;
if (test2)
   return B;
return C;

previous | index