This counter is nuts!

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0

gemini

Client
Регистрация
10.03.2011
Сообщения
160
Благодарностей
31
Баллы
28
try removing quotes.
number with quotes is string, number without quotes is integer (or similar).
Not sure how is this handled by JS, but perhaps it doesn't do conversion string to integer while comparing and it compares it as string which result to weird behavior.
 
  • Спасибо
Реакции: jp1

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
It went false on 6 on mine. Don't understand it at all. Maybe ask Nauru if he knows why. Seems like it should keep on going.
 

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
it works fine now! you have to take the ' and ' out of both sides because as gemini said it thought it was a string not a number.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)