|
Re: A few simple programming questions;
Quote:
|
Originally Posted by Inverted
Also, (this may be wrong because I haven't written code like this in 2 years) I think you only need one = when referring to the value of the button, not ==.
|
Changing to a single = would be legal but have a totally different meaning and in this case be wrong. A single = would cause an assignment to occur instead of doing a comparison.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
|