I'm puzzled. In this statement: "if 0 & yrdif(.,19000) then a=1; else a=2;" I get errors on the yrdif function which clearly not be evaluated at all?