title: Cant check boolean in javascript
body: <p>I am getting values from a model, but while checking the values it always goes in to the <code>else</code> part of the conditions. I am alerting the values I am getting and they are correct, but in the <code>if</code> condition it doesn't get satisfied. I even tried with <code>===</code>.</p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
    var mark = new Boolean(@Model.isMarketing);
    var revenue = new Boolean(@Model.isRevenue);
    var staff = new Boolean(@Model.isStaff);
  
    if (revenue == true) {
      $("input[name=isRevenue][value='isRevenue']").prop("checked", true);
    } else if (staff == true) {
      $("input[name=isRevenue][value='isStaff']").prop("checked", true);
    } else if (mark === true) {
      $("input[name=isRevenue][value='isMarketing']").prop("checked", true);
    } else {
      $("input[name=isRevenue][value='None']").prop("checked", true);
    }
  });
  </code></pre>