Confusing code with ? operator
<p>I was reading through someones old code and I found this line:</p>

<pre><code> menuItem.Checked = (menuItem.Checked == false) ? true : false;
</code></pre>

<p>I dont understand what it does and how. any help?</p>
