![]() |
Another Operator Precedence Issue!
this.mode != "jumping"
is not the same as !this.mode == "jumping" apparently. |
Quote:
|
Quote:
Unless you're surrounding it with brackets, it's treating !this.mode == "jumping" effectively as Not this.mode equal to "jumping", which probably will be even more senseless as "jumping" is not a boolean. |
Quote:
|
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.
|
Quote:
PHP Code:
|
Quote:
Do you understand how negating a string could cause a problem? |
| All times are GMT +2. The time now is 11:50 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.