title: One-line `if` return statement with two actions
body: <p>I'm searching for an elegant way to bring the following <code>if</code> statement into one line:</p>
  
  <pre><code>if var1.nil?
    log("some message")
    return
  end
  </code></pre>
  
  <p>I love the right hand <code>if</code> statement where you can say</p>
  
  <pre><code>return if var1.nil?
  </code></pre>
  
  <p>In this case, I need two actions, but the following doesn't work:</p>
  
  <pre><code>log("some message") and return if var1.nil?
  </code></pre>
  
  <p>Is there a way to perform two actions (log message and return) with an <code>if</code> at the right side in one line?</p>