r/learnruby • u/IAmaBoredIntern • May 31 '16
Why are my if statements not working?
When I run my program in powershell, no errors are detected and the program runs fine...however, it does not execute any of the if statements based on user input ($stdin.gets.chomp)
puts "ok, pick 1,2, or 3" pick =$stdin.gets.chomp
if pick == 1 puts "herro" end
3
Upvotes
3
u/interactionjackson May 31 '16
post code for a better chance at having your problem looked at.
2
u/IAmaBoredIntern May 31 '16