return true vs return 1 +rep
#1

hey,
what is the difference between return 1 and return true ?

which one should i use?
Reply
#2

Theyre both the same. True == 1.

Only with booleans you can ONLY use true/false, and not 1/0.
Reply
#3

In all scripting languages,
True == 1
False == 0

Doesn't matter which you use to return your functions.
Reply
#4

thanks guys.
+rep given
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)