Thread: onwall and such
View Single Post
  #42  
Old 05-25-2006, 06:55 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ApothiX
I lied, one more post.

Good job for proving that both are the exact same amount of steps, and the same amount of work required by the applications.
Uh, no.
function() returns true
that's one step
true is equivalent to true
that's two steps

function returns true
that's one step

When you do
function() returns false
false is equivalent to false
that's two steps too

also
function() returns false
the ! operator negates false to true.
there's two steps

However, you wouldn't know if the ! operator is faster than the == operator in gscript. But for true values there's more steps in comparison by ==true.