title: "and return unless nil" statement in Ruby
body: <p>I have the following code:</p>
  
  <pre><code>def test
    show_msg and return unless nil
    puts "This line can not be executed"
  end
  
  def show_msg
   puts "exit here"
  end
  
  test
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>exit here
  This line can not be executed
  </code></pre>
  
  <p>I expected the only on line:</p>
  
  <pre><code>exit here
  </code></pre>
  
  <p>Why?</p>