title: Why can't I do "if zero" in ruby?
body: <pre><code>&gt;&gt; current_user.first_visit
  =&gt; 0
  &gt;&gt; if current_user.first_visit
  &gt;&gt; puts "test"
  &gt;&gt; end
  test
  =&gt; nil
  </code></pre>
  
  <p>Why does it print test?</p>