Javascript if syntax
<p>i have syntax error when i'm trying to run a simple if statements</p>

<blockquote>
  <p>[Break On This Error] }); </p>
</blockquote>

<p>invalid assignment left-hand side
[Break On This Error] container += </p>

<p>what is my problem
and how i can make:</p>

<pre><code>if this.ewCount != 0 then {}  
elseif NotDoneh == 0 then {} 
ELSE {}
</code></pre>

<p>this is my current code:</p>

<pre><code>var conta = '&lt;div&gt;';
$.each(items, function () {
    if (this.ewCount != 0) {

        if (DoneWidth == 0) {
            conta += '&lt;br/&gt;dddddddddddddddddd&lt;br/&gt;&lt;br/&gt;' +
        });
        if (NotDoneh == 0) {
            conta += '&lt;br/&gt;dddddddddddddddddd&lt;br/&gt;&lt;br/&gt;' +
        });
    });

    container += '&lt;/div&gt;' +
</code></pre>
