>thanks :)
bb's first solution is faster to program in the short run. The second solution is better in the long run, especially if you need some cleanup code in the function. In this case, you will want to have a single point of exit out of your function.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)