you can use defined?, however it will also hit on constants (classes), methods and probably more ..: if (!defined?($my_uid)) then else end On Sunday 15 June 2008 11:56:54 Alexey Tafintsev wrote: > Hello people! > How !isset in Ruby? > > example php > <?php > if(!isset($MY_UID)) > { > //bla-bla > } > else > { > //bla-bla > } > ?>