Using "Replace" till no more "Replace" possible.

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Hi!
I'm having a problem with ZP,
I have an article with "XXXXXX" in it(about 10-20)
and I try to replace the "XXXXXX" with keywords, each time I take random keyword, and then replace the first.
The template inserts the random keywords perfectly, but the problem is that it isn't stopping even when there is nothing to replace anymore..
it just loops without replacing anything after that,
Is there a way to make it stop when there is nothing to replace anymore?

Thanks!

Nevermind, I managed to use a counter instead of a loop.
 

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