Posts: 18
Threads: 7
Joined: Oct 2011
Reputation:
0
hey,
what is the difference between return 1 and return true ?
which one should i use?
Posts: 1,564
Threads: 98
Joined: Apr 2011
Reputation:
0
Theyre both the same. True == 1.
Only with booleans you can ONLY use true/false, and not 1/0.
Posts: 398
Threads: 19
Joined: Aug 2011
Reputation:
0
In all scripting languages,
True == 1
False == 0
Doesn't matter which you use to return your functions.