Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Unless control flow tests for a false condition
# Ruby Getting Started with Programming
# A Codecademy Ruby (Unless) assignment
# Dr. Steven B. Combs, coding novice
hungry = true
unless hungry # tests for false condition
puts "I'm writing Ruby programs!"
else # if not false, but true
puts "Time to eat!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.