Thread: onwall and such
View Single Post
  #52  
Old 05-29-2006, 02:13 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Tyrial
if (onwall() == true) is exactly the same thing as if (true == true).
Not if onwall() is returning false.
Quote:
Originally Posted by Tyrial
If that is correct, why don't you continue to do:

if ((((((onwall() == true) == true) == true) == true) == true) == true)

It's the exact same thing.
Why the hell would you continue to do that?

That is called wasting time, space and energy. Besides, it is not exactly the same since you are making the engine evaluate the statement six times. I do not think it will fold that down.
__________________
Skyld