and another one found by Shawn ...(fixed version above)

0's were treated as strings inside the function (because of if val(etc))

so the output of 100,200,300,0,0 was
100
200
300
0
0

Jochen

_________________________