> I have a statement that might cause divide by zero, is there > any statement to replace zero by one when it occurs. if ($x=0) then 1 else $x Michael Kay http://www.saxonica.com/