View Single Post
Old 28/07/2015, 12:19 AM   #15
!damo!spiderman
Huge Clucker
 
!damo!spiderman's Avatar
 
Join Date: Oct 2006
Posts: 244
Reputation: 160
Default Re: How to use return 1/0 ?

Quote:
Originally Posted by SpikeSpigel View Post
return 1 - true
return 0 - false.

In the most cases you need to use return 1, you will get with time when to use return 1 or return 0.

The simpliest explication .

return 1 - true - Return the function.
return 0 - false - Doesn't return the function.
The simplest and wrong explanation is the one above. Using the return statement will always return the function, no matter what you return
__________________
!damo!spiderman is offline   Reply With Quote