title: Breaking an until loop once condition is met in Ruby
body: <p>For example in the following code, I would want the loop to end as soon as the condition evaluates as <code>true</code></p>
  
  <pre><code>x = "B"
  
  until x == "A"
  x = gets.chomp
  puts "x is not equal to "A""
  end
  </code></pre>
  
  <p>So if the user enters <code>"F"</code> they get the <code>puts</code> but if they enter <code>"A"</code> then the <code>puts</code> does not get outputted.</p>