David Herman wrote: >> if (h == 0) >> h = function() {break}; > > Did you mean if (x == 0)? That's been confusing me in trying to read your example. No. I meant the code as it was originally written. Waldemar