title: I need help in ruby
body: <ol>
  <li>I'm making a software but I don't want to publish it's source code right now because I don't want people to steal my hard work. I'm not rude or anything like that. Below is an example of what the program I'm making looks like.</li>
  </ol>
  
  <blockquote>
  <pre><code>print "Username : "
  name = gets.chomp
  
  
  print "Password : "
  pass = gets.chomp
  
  if name =="user" and pass=="pa$$word"
  print "Hello"
  
  else print "Error, incorrect details"
  </code></pre>
  </blockquote>
  
  <p>Now this is a simplest login form in ruby but what bad happens here is whenever the user inserts wrong information the program will simply shutdown and what I want to happen is that I want to keep the program asking the user for right information until right information is inserted.</p>
  
  <ol>
  <li><p>Are you a windows user? Do know how to program in batch files?
  examples </p>
  
  <p>echo Hello world
           cls</p></li>
  </ol>
  
  <p>pause</p>
  
  <p>So here is the code for ruby</p>
  
  <pre><code>a. print "Command : "
  b. command = gets.chomp
  
  c. if command == "Hello"
  
  d. print "Hi, how are you?"
  
  e. elsif command == "help"
  
  f. print "Say hi to me, chat with me"
  </code></pre>
  
  <p>now what I want here too is just like in the first question</p>
  
  <p>Details : After the user types in "Hi" the program just shuts down but what I want here it to make the program ask go to line a again </p>