How do you make a Ruby program go back to a certain section ex. if pass equals 'bob' puts 'access granted' else I want it to go back. Anyone able to help me?

Define a method which returns something, like a boolean true/false. Then you can call that method, and make a decision based on its outcome, which would be equivalent to "going back". Like this: def mymethod if 0!

= 1 puts "Zero doesn't equal one, returning false" return false else puts "Math has failed me, zero is now one!" return true end end #End mymethod if mymethod == true puts "Returned true, do something." else puts "Returned false, do something." end.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions