title: Ruby blocks - unless and if comparison
body: <p>I have a doubt regarding unless and if blocks in ruby language. Please excuse me if I'm that stupid to ask this question.</p>
  
  <p>Lets assume we have two boolean variables <code>a = true</code> and <code>b = true</code>.</p>
  
  <p>condition: I want to check whether both of them are true. Using if statement we can check that as given below.</p>
  
  <pre><code>if a == true &amp;&amp; b == true
    print "Hai"
  end
  </code></pre>
  
  <p>doubt: instead of the above statement, can I use the one given below?</p>
  
  <pre><code>unless a == false &amp;&amp; b == false
    print "Hai"
  end
  </code></pre>
  
  <p>Will both the blocks given above give the same result?</p>