title: If variable equals the number 1
body: <p>I'm trying to write a very simple if statement in my jquery.  If the variable equals the number one then do this, if it equals the number two then do this.  This is what I wrote but it doesn't seem to work and I can't figure out why:</p>
  
  <pre><code>$("#next-btn").click(function() {
      if (current_slide = 1) {
          first_screen();
      }, else if (current_slide = 2) {
          second_screen();
      } 
  });
  </code></pre>
  
  <p>probably very simple, but I appreciate the help.</p>