Didn't know a nice if like that would just take care of it! Also, did you test that code? Or the concept? I'm pretty sure you can't do exits[avar[. I did some testing with that earlier... -- Posted via http://www.ruby-forum.com/.