IF for take doom

moron

Client
Регистрация
08.07.2012
Сообщения
17
Благодарностей
0
Баллы
1
So basically my problem is like this:

Take Doom using regex and save it to a variable name variable1
I use if statement to check whether variable1 is not found/nothing in the result like this '{-Variable.variable1-}'!=''

But it say error in the log and the if didn't return any true and false.
How to verify that take doom was successful :confused:

sorry for the trouble,

moron
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
Syntax for If action is correct.

I'm not sure what you mean by taking doom :rolleyes:
If you try to parse DOM for text presence, you can send me you project in PM i will check.
 

moron

Client
Регистрация
08.07.2012
Сообщения
17
Благодарностей
0
Баллы
1
already send the download link in pm sir :rolleyes:
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
Replied ;-)
 

moron

Client
Регистрация
08.07.2012
Сообщения
17
Благодарностей
0
Баллы
1
Sorry again rostonix but the error occur when i try search it with the right regex:

I change the regex for searching the in Take Doom <span\ id="listing-name-{-Variable.counter-}">[\w\W]*?<span\ preferredcontact="
it save the value to allthelist variable but still the IF statement result is none (going to alert popup and end my template)
when it suppose to go back to increase count 1 below the doom.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
You had wrong syntax in If action which i mentioned in PM. Did you changed it?

After that everything is good.
Your DOM parsing action returns no result = this text doesn't presence in DOM :-)
That's why your next IF action always end as false

Try to use another text for parsing )
 
Последнее редактирование:

moron

Client
Регистрация
08.07.2012
Сообщения
17
Благодарностей
0
Баллы
1
yes sir i changed it already to "{-Variable.allthelist-}"!=""

And i changed the regex to search for the correct html in take doom

from this: <span\ id="listing-name-42">[\w\W]*?<span\ preferredcontact="
to this: <span\ id="listing-name-{-Variable.counter-}">[\w\W]*?<span\ preferredcontact="

but still the if statement end as false.
 
Последнее редактирование:

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
I got your problem.
You parse huge piece of code.
That will not work in If action because it ruins the syntax of action itself.

You're allowed to check data that contain no quotes and has no tons lines )

Why do you need to check this parsed result anyway?)

You can use this for parsing to get piece of code to work with later with text processings:

<span\ id="listing-name-\d{2,5}">[\w\W]*<span\ preferredcontact="
\d{2.5} - any number between 10 to 99999
 

moron

Client
Регистрация
08.07.2012
Сообщения
17
Благодарностей
0
Баллы
1
ok, now i understand thank you i thought the if statement can check huge code whether it contain anything or not.
Thank you for time :D
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
Just find some text which will indicate that page really contain what you need and parse for it )
 

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