I think I found it...

Changed the following to -

UNTIL @error<>0 OR NOT len($x)

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's