Thanks Campbell. Yes, the code change I suggested would give an error. The compiler would be unable to see the return statement, and it would complain
. I failed to notice this when I suggested the code chnage. Also, as Campbell pointed out this is not the most appropriate and structured way of writing code. Nikita, sorry for the confusion.