the use command doesn't return a 1 or 0...I'd bet its the UDF doing it... put your $= in front of the UDF.
_________________________
(... better days ahead)