Posted By: Anonymous
Simple comparision question - 06/18/13 16:52
The manual says you should not do a Boolean check on a pointer and comp it's member(s) values in the same if(). Is this still true. Example below.
Also does this apply if you are doing the Boolean check on the contents of a VAR and not it's pointer.
Code:
if ( pan_temp && pan_temp.pos_x != 1024 ) // The manual says don't do this. if ( pan_temp ) // Manual say do this. { if ( pan_temp.pos_x != 1024 ); }
Also does this apply if you are doing the Boolean check on the contents of a VAR and not it's pointer.
Code:
var I = 999; if ( I && I > 500 )