How to add a counter and pick the lne below the last one

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Hi,

When you use the macro File.GetString and do not choose the "remove string" to true, the same line is always picked up, is there a way to add acounter and an increment of 1 in order to have zenno to always pick the next one?


I tried it add:

step1:
{-Counter.Get-|-count1-}

step2:
{-Counter.Add-|-count1-|-1-}

step3:
{-File.GetBlock-|-\Resources\website\combined.txt-|-************************************************************************-|-0-|-false-}

this file holds all my emails as a .txt file with delimiters. No problem when it is done via a true statement but I am annoyed to delete all the the urls all the time.

Please help,


Thank you,


BamBam
 

yami

Client
Регистрация
23.06.2010
Сообщения
45
Благодарностей
1
Баллы
8
Код:
step1: {-Counter.Add-|-count1-|-1-}
step2: {-File.GetBlock-|-\Resources\website\combined.txt-|-************************************************** **********************-|-{-Counter.Get-|-count1-}-|-false-}
 

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
Do a "count lines in the file" first...

Use that execution as your number of lines...

Use the counter portion after this
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Nice!

Thanks guys, I did not know we could count the number of lines,, excellent!

BamBam
 

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