Quote:
|
Originally Posted by jake13jake
So it tests as a boolean when comparing to a string value and as a floating point when comparing to a floating point? I'm so confused.
|
You're only negating the left side of the comparison (this.mode) in your second case, which (assuming this.mode is a string) is negating a string.
Do you understand how negating a string could cause a problem?