Finally, it is always satisfied. What this means, which means it is coming back, will be used in your case.
You will want to change your code to look like this:
function example() { var returnState = false; // initialisation value is really up to the design try { returnState = true; } catch { returnState = false; } finally { return returnState; } }
Generally speaking, you never want to have more than one return statement in a function, which is why.
annakata 01 Oct '10 at 9:45 2010-10-01 09:45
source share