On Jul 23, 2013, at 3:55 PM, Talal B. <lists / ruby-forum.com> wrote:

> Thanks so much for your help but what I'm looking for is
> 
> while key.pressed =! q

loop do
  print "Type 'q' to quit: '
  break if gets[0] == 'q'

>     if solve.voltage.nil?
>         puts solve.voltageNil
>     elsif solve.current.nil?
>         puts solve.solve4Current
>     else
>         puts solve.resistanceNil
>     end
> end
> 
> Does anyone know how i may be able to accomplish this goal?
> 
> -- 
> Posted via http://www.ruby-forum.com/.
>