On 04.05.2007 18:46, aidy.lewis / googlemail.com wrote:
> Paul Rogers wrote
> 
>> as Robert has said, its generally bad to say if x==true
> 
> Not sure why it would be bad practice to compare to true?

Because converting a boolean to a boolean by means of comparison with 
boolean values

a) is superfluous

b) can do more harm than good (as I pointed out, there are often 
multiple values for either "true" or "false" in computer languages, so 
comparing with just one of these values will almost certainly make your 
program fail at some point).

	robert