Hi all - I can provide the actual script code if needed, but this is almost a request for more general information too. I have one script that calculates and displays the Qty Available on the Sales Order Line and I had to convert the numeric result to CStr in order to make sure the negative sign showed in the UDF field for a negative value. I have a secondary script that runs to recalculate the Line's Promise Date based on conditions involving the Qty Available UDF, Qty Ordered and linked Primary Vendor Lead Time. It works great for a Qty Available of 0 or more, but it will not work for negative available quantities. I've tried CInt(sQtyAvailable) < nQtyOrdered, sQtyAvailable < CStr(nQtyOrdered), CDbl(CInt(sQtyAvailable)) < nQtyOrdered, etc. Why am I having such a problem? It shouldn't be this hard. Any advice?