This might be a silly question, but I just can't get it to work. Pretty sure I've missed something.
I want to set a boolean to false
Then set it to true only when a condition is met.
boolTest = false
until boolTest = true
puts "Enter one fo these choices: add / update / display / delete?"
choice = gets.chomp.downcase
if choice == "add" || choice == "update" || choice == "display" || choice == "delete"
boolTest = true
end
end
Only just starting to learn Ruby, so maybe I'm confusing the capabilities of other languages.
boolTest = true, don't add quotes.bool_test(snake_case), notboolTest(camelCase).until boolTest == true