Thread: quick question
View Single Post
  #5  
Old 09-09-2009, 02:15 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbk1994 View Post
PHP Code:

Doesn't that look nicer?
Personal Preference (: (How you 'categorize' variables into groups is personal preference )

Quote:
Originally Posted by cbk1994 View Post
Keep in mind that visible is a boolean, so you should not set it to '0'; instead use 'false'. "new" should also not be capitalized.
True bools do not exactly 'exist' in graal, as it's either 0 or 1. So it doesn't matter if you use true or false as the engine will read it as 0 or 1 anyways.

Reason why you can do
PHP Code:
if ((true true) == 2) {
  
// proceed

So it's basicly just easier to write 0 and 1 instead of true and false, since it's shorter
__________________
Reply With Quote