21.02.2014, 08:12
No the same. Let's say "Something" is a function. First snippet requires it to return a value - and that value will be returned by your function. The second one doesn't finish code execution, so when you have code after that "if" it will execute. Won't when using #1 and #3. The third one calls the function (it doesn't have to return any value), and returns constant number 1.