title: Ruby assignment and comparison in one line?
body: <p>It seems this doesn't work as expected:</p>
  
  <pre><code>if c = Countries.first.nil?
    ... do something
  end
  </code></pre>
  
  <p>The comparison works but the assignment doesn't. Is there a way to do both the comparison and assignment in one line?</p>