What's wrong with this IF logical statement?

  • Автор темы Автор темы jp1
  • Дата начала Дата начала

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 !.
 
'{-FieldData.FieldData-|-●7●5●7●1●8●6●-|-≡2≡0≡0≡9≡6≡7≡0≡4≡3≡-}'=='http://answers.yahoo.com/'
 
a single '=' assigns a value e.g. 'a=b' makes booth variables the same(value of b). You compare with '=='
 
'{-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.
 
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/'
 
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
 
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.
 

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