Profile image of anonymous
Submitted by anonymous
over 10 years

Control flow in ruby - unless explained

Hi im new to coding so im aware this is a nooby question, but could someone explain it? The way its worded on the guide is a bit awkward. Thanks

Answer 53e246cf80ff33bf9a002c1d

0 votes

Permalink

I understand the concept of it, just not the actual code written in the editor ; hungry = false


puts “I’m writing Ruby programs!”


puts “Time to eat!” end

Profile image of anonymous
Submitted by anonymous
over 10 years

1 comments

Profile image of philip32686
Submitted by philip32686
over 10 years

the two blank spaces between each line of code you wrote out that ended up as “___________” Those areas you need to fill with code in order to make this code work.

Try using an unless statement in the first empty space and an else/end statement where applicable afterwards.