From: "David A. Black" Date: 2004-07-03T03:03:26+09:00 Subject: Re: How to detect if variable has been defined yet? On Sat, 3 Jul 2004, David A. Black wrote: > I think you'd have to use defined?, or conditionally initialize the > variable: > > x ||= 0 > x += 1 Actually to get what Randy wanted it would have to be: x ||= -1 x += 1 or x = (x ||= -1) + 1 David -- David A. Black dblack@wobblini.net