From: Jake Brightmatter Date: 2009-09-30T01:42:15+09:00 Subject: Re: Sequel accessor methods Let's assume for a second that I understood 50% of what you said. Based on that half understood concept, the following code would look at house locations in the hash and if the location was NIL, it would break out of the loop? def find_unused_house_id() i = 0 b = true while(b) @open_lot = DataBase[:house].filter( :id => i ).first b = false unless DataBase[:house][:id => i] i += 1 end end If this is too far off the mark, and you happen to know Java, C#, JScript, JavaScript, C or C++, could you explain it in those other language terms because for some reason, the Ruby syntax is an enigma to me. -- Posted via http://www.ruby-forum.com/.