From: Wayne Blair Date: 2001-05-31T00:40:10+09:00 Subject: [ruby-talk:16042] Re: new keyword idea: tryreturn, tryturn or done > > > > if (x=getValue) return x > When I do something like this I get a warning about using = in conditional. Did > you mean ==?? > It sends the warning, but it works. This version will not show warning and is cleaner anyway: if (x=getValue) != nil return x end Wayne