> is there a way of expressing this on one line? > > unless row.at(7).nil? > this_row[:print_date] = row.at(7).date > end You were close! This is what you need to do: this_row[:print_date] = row.at(7).date unless row.at(7).nil? Regards, Andy Stewart