title: How can we set a variable after the user chooses from a HighLine menu in Ruby?
body: <p>The HighLine documentation shows that we can display a string after the user selects an option from the list, like follows:</p>
  
  <pre><code>choose do |menu|
    menu.prompt = "Please choose your favorite programming language?  "
  
    menu.choice(:ruby) { say("Good choice!") }
    menu.choices(:python, :perl) { say("Not from around here, are you?") }
  end
  </code></pre>
  
  <p>How can we set a variable in addition to (or in place of) showing text? Replacing <code>say("Good choice!")</code> with <code>variable = 1</code> did not work and instead returned an "undefined local variable or method" error.</p>