My previous e-mail was a bit early. I would expect the script to stop if $var<>0 but it keeps going (i added a goto 'end'. When debuging the script, it appears as if the $var= line is not read.

Any thoughts?