B
beny 18241
Hi,
As i wanted to make some kind of test.I have one simple question
in example below, if user puts enter , he will recive info "make a
choice"
How to make if user push enter twice he will recive second info "make a
choice" and still there will be availabilty to choose between q and y
options?
-----
if $choice == '' || $choice == nil
puts "\nmake a choice\n"
else if $choice == 'q'
print "\nGoodbye\n"
else if $choice == 'y'
else
put "blablabla" end
----
see output that i wish to recive
make a choice [enter]
make a choice [enter]
make a choice [q]
Goodbye
please help
As i wanted to make some kind of test.I have one simple question
in example below, if user puts enter , he will recive info "make a
choice"
How to make if user push enter twice he will recive second info "make a
choice" and still there will be availabilty to choose between q and y
options?
-----
if $choice == '' || $choice == nil
puts "\nmake a choice\n"
else if $choice == 'q'
print "\nGoodbye\n"
else if $choice == 'y'
else
put "blablabla" end
----
see output that i wish to recive
make a choice [enter]
make a choice [enter]
make a choice [q]
Goodbye
please help