Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/10/03 14:25
Read: times


 
#43211 - RE: Not Branching conditional statement
Responding to: ???'s previous message
"if(VAR_X == 0 & A == 0)"

Hi Spencer,

Just my 2 cents but from a programmer's standpoint, you want to use parentheses in that conditional statement. I've seen lots of legacy code where there have been all kinds of conditions added later on that confuse and mislead when you're trying to read someone else's code. I don't mean to offend, you've just hit one of my pet peeves.

if((VAR_X == 0) && (A == 0))

Judy

List of 6 messages in thread
TopicAuthorDate
Not Branching conditional statement 'c '            01/01/70 00:00      
   RE: Not Branching conditional statement \'c \'            01/01/70 00:00      
      RE: Not Branching conditional statement \'c \'            01/01/70 00:00      
         RE: Not Branching conditional statement \'c \'            01/01/70 00:00      
            RE: Not Branching conditional statement \'c \'            01/01/70 00:00      
   RE: Not Branching conditional statement            01/01/70 00:00      

Back to Subject List