From: Dave Thomas Date: 2001-03-23T23:55:07+09:00 Subject: [ruby-talk:13139] Re: How would Ruby say this? "Lyle Johnson" writes: > The first obvious option for exposing this function in Ruby is to return > both values as a two-element array, e.g. ... > But this is awkward. Another option I'm considering is to have the function > raise an exception for the "false" return status: A third option would be to return 'nil' on no input (as presumably nil can never be returned). Then you can write if res = getValue("What's the frequency..") process ... else no input end Dave