Web source help

@dano or someone, just a question please.

i made a webscript and it works but if the search page as fewer results than the
While 99 (per example)
it gives an error.

I mean if the results are 4, and i put "do...While 10" it gives an error.
can someone point me to a correct way to change this?

It means your code to exit the loop is not correct.