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.
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.
var I = 999;
if ( I && I > 500 )