title: Ruby lazy if statement with no operator
body: <p>Is it possible to do this in ruby?</p>
  
  <pre><code>variablename = true
  if variablename
     puts "yes!"
  end
  </code></pre>
  
  <p>Instead of this</p>
  
  <pre><code>variablename = true
  if variablename == true
     puts "yes!"
  end
  </code></pre>
  
  <p>Edit:
      also considering having:</p>
  
  <pre><code>variablename = 0 #which caused my problem
  </code></pre>
  
  <p>I can't get that to work. Is such a style of saying if possible? I'm learning ruby now, and it is possible in PHP but im not sure how to do it right in ruby</p>