From: Tor Erik Linnerud Date: 2008-06-15T21:32:48+09:00 Subject: Re: How !isset in Ruby > How !isset in Ruby? Judging by http://uk2.php.net/isset, !(var.nil? rescue true) will achieve something similar to !isset(). var.nil? rescue true => true var = 123 var.nil? rescue true => false var = nil var.nil? rescue true => true But I am not sure that it makes any sense when used with the Ruby CGI library. An exception will be raised if a variable which doesn't exist is accessed. All variables are generally evaluated to true, except for those set to false or nil. If you want more help you have to tell us what your problem is more exactly. Tor Erik -- Posted via http://www.ruby-forum.com/.