What's wrong with this IF logical statement?

jp1

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

'res:/ieframe.dll/dnserrordiagoff_webOC.htm#http://answers.yahoo.com/'='{-FieldData.FieldData-|-●2●5●6●9●4●2●-|-≡1≡0≡9≡4≡5≡0≡6≡4≡0≡8≡-}'

Why am i forced to do this:

'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'!=''

This is my first experience with js expressions. Are they javascript expressions? Anyway, it seems to be I can only do a field data is not equal to nothing statement, or not equal to something, but never an IS EQUAL to whatever statement. Try as I might I am forced to stick an ! into the equation. But I want to clean ieframes, so I want to proceed in a certain manner if the browser winds up in an ieframe. This can't be done with not equal to nothing statements. I'm surprised my logic doesn't work, because it seems so logical! In the almighty words of Chernyshevsky what is to be done?

Посмотреть вложение bla bla bla.xml

i guess i could just switcharoo the exits, but i'd still like to know why IF statements have to be NOT EQUAL, why they have to have !.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'=='http://answers.yahoo.com/'
 

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
a single '=' assigns a value e.g. 'a=b' makes booth variables the same(value of b). You compare with '=='
 

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'='http://answers.yahoo.com/'

I know, i insert that and I don't get a 'true' result, so it doesn't go onto the next step.

However when I do:

'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'!='http://answers.yahoo.com/'

at least i get a false.

So i'm perplexed.
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
You need to use "==" to test the equivalence.

'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'=='http://answers.yahoo.com/'
 

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
aha! ok! so this is that thing called javascript everyones yabberin on about!

edit: well, logic itself, seeing as i've also seen this stuff in php
 

gemini

Client
Регистрация
10.03.2011
Сообщения
160
Благодарностей
31
Баллы
28
aha! ok! so this is that thing called javascript everyones yabberin on about!
As for javascript - that's not only thing you can do with it in zenno. You can also create more advanced JS codes - which could be used e.g. for breaking math captcha ;-)
There are special macros for javascript - not only logical statements.
 

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