From: Mmcolli00 Mom Date: 2009-10-23T00:24:58+09:00 Subject: convert/replace a value of nil with 0? Do you know how I can convert or replace any value that gets back a 'nil' to 0? For instance, the myArrayVal[0] may or may not contain a number and I want the code to default to 0 if a nil is returned. I have not found any documentation on this. Thanks in advance. MMCOLLI00 -- Posted via http://www.ruby-forum.com/.