What's the difference between these ?
#4

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.
Reply


Messages In This Thread
What's the difference between these ? - by AnonScripter - 21.02.2014, 08:00
Re: What's the difference between these ? - by FilesMAker - 21.02.2014, 08:02
Re: What's the difference between these ? - by itsCody - 21.02.2014, 08:07
Re: What's the difference between these ? - by Misiur - 21.02.2014, 08:12
Re: What's the difference between these ? - by trukker1998 - 21.02.2014, 08:12
Re: What's the difference between these ? - by FilesMAker - 21.02.2014, 08:14
Re: What's the difference between these ? - by Aerotactics - 21.02.2014, 08:25
Re: What's the difference between these ? - by Misiur - 21.02.2014, 08:41
Re: What's the difference between these ? - by AnonScripter - 21.02.2014, 09:27
Re: What's the difference between these ? - by Vince - 21.02.2014, 09:59

Forum Jump:


Users browsing this thread: 3 Guest(s)