Need help with Ruby controll flow plaese help


#1

unless false
unless
puts "I'm writing Ruby programs!"
unless
puts "Time to eat!"
unless

why dose it not work


#2

Hi you should put hungry = false so your unless statement should be like that

hungry = false

unless hungry
    puts "I'm writing Ruby programs!"
else 
    puts "Time to eat!"
end

#3

Thanks @wizmarco you helped me so much