title: Syntax error - Logical if statement
body: <p>I`m just using a If statement with the logical operator. I dont know why it is showing sytax error.</p>
  
  <pre><code>var divWidth = $("#columnwraper").width(); //getting the width of the div   
  $("#right-button").click(function() {
      if (cursor != totalWidth &amp;&amp; totalWidth !&lt; divWidth) {
          $box2.animate({
              marginLeft : "-=300"
          }, "fast");
  
          cursor += 100;
      }
      // console.log(colwidth.width());
  });
  </code></pre>
  
  <p>It`s showing that </p>
  
  <blockquote>
    <p>[15:18:24.050] SyntaxError: missing ) after condition.</p>
  </blockquote>
  
  <p>What am I doing wrong here?</p>