From: 7stud -- Date: 2008-01-30T14:22:36+09:00 Subject: Re: newbie file write problem Lars Zeb wrote: > I expected it was something like the following for each input line: > IF EXISTS (SELECT * FROM Sic WHERE Code = '3291') > BEGIN > UPDATE Sic > SET Descr = 'ABRASIVE PRODUCTS' > WHERE Code = '3291' > END > ELSE > BEGIN > INSERT INTO Sic > SELECT '3291', 'ABRASIVE PRODUCTS', getdate() > END Is there no way to test what the return value of a function is? What's the return value of the following function: def sayhi puts "hello" end -- Posted via http://www.ruby-forum.com/.