1 && 8) != (8 && 1)
by Orion Elenzil · in Torque Game Engine · 02/06/2006 (4:14 pm) · 1 replies
Woah..
this is because (A && B)
is evaluating as
if (A AND B) then answer B, else answer 0.
TGE 1.3
edit: sorry about the messed up parens in the title..
edit: changed "1"s to "2"s.
echo((8 && 2) == (2 && 8)); 0
this is because (A && B)
is evaluating as
if (A AND B) then answer B, else answer 0.
TGE 1.3
edit: sorry about the messed up parens in the title..
edit: changed "1"s to "2"s.
About the author
Associate Orion Elenzil
Real Life Plus