Is there a ? conditional test in Javascript like in C#?
<p>I have the following:</p>

<pre><code>var isChecked = $('#htmlEdit').is(":checked");
</code></pre>

<p>But I don't really need the variable isChecked and what I want to do is to assign a value to a variable called "action" so that if the test on the right above is true then </p>

<pre><code>var action = "Editing HTML" 
</code></pre>

<p>if not then </p>

<pre><code>var action = "Editing"
</code></pre>

<p>Is there a clean way to do this without just using an if-else?</p>
