title: Show Bootstrap Modal Only Once using Boolean
body: <p>I'm using a Bootstrap Modal and I want to have it show up only once when a button is clicked, but not if the button is clicked again. </p>
  
  <p>I want to do this using a boolean that is initially true and when the button is clicked is set to false. I have actually found a solution just removing the Modal using .remove() after it is hidden the first time, but I want to know why a Boolean won't work.</p>
  
  <p><a href="http://jsfiddle.net/ncjbx/9/" rel="nofollow">http://jsfiddle.net/ncjbx/9/</a> </p>
  
  <pre><code>var modalshow = true;
  $("#button").click (function () {
      if (modalshow = true) {
          $("#myModal").modal("show"); 
          modalshow = false;
      }
  }) 
  </code></pre>