code:
$check=0
While $check <> '28'
$check=$check+1
loop

I think that comparing a number to a string may cause an issue.
_________________________
Home page: http://www.kixhelp.com/hb/