How to compare two ip addressed

cool7878

Client
Регистрация
22.02.2013
Сообщения
28
Благодарностей
1
Баллы
3
Hi

I am having some hard time to compare two ip addresses stored in two variables. Could you please tell me the exact way I need to put it in if statement? so far I tried this but it did not result any true or false:

'{-oldip-}'='{-newiip-}' or '{-oldip-}'!='{-newiip-}' nothing worked.

Thanks
Raj
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
'{-oldip-}'!='{-newiip-}' whould work

Attach example
 

cool7878

Client
Регистрация
22.02.2013
Сообщения
28
Благодарностей
1
Баллы
3
Hi

I found the solution of the problem. Put those two variables into javascript and them compared and it worked.

Thanks
Raj
 

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