>>for n=1 upto 4: >> (t[n],whatever) = r intersectiontimes q; > > % in a general purpose macro one might want: > exitif t[n]<0; Indeed! Thanks Dan. Troy