javascript if else construct
<p>I'm running through a loop in which I have this code:</p>

<pre><code>        if (i % 2 == 0) {
            TheVar = "StyleEven";
        }
        else {
            TheVar = "StyleOdd";
        }
</code></pre>

<p>Is there a "better" way to write this?</p>

<p>Thanks.</p>
