Please explain 'switch' in the .toggleClass() API?
<p><a href="http://api.jquery.com/toggleClass/" rel="nofollow">Here</a> is the API for the .toggleClass() method of the Jquery library.  I am unsure about how to implement the switch portion.  Is the switch portion supposed to result in boolean value, and if it is, then it is either implemented or not?</p>

<p>So if the code was :</p>

<pre><code>`$('selector').toggleClass('class-to-be-toggled' , ($(this).hasClass('white')))`
</code></pre>

<p>and the <code>($(this).hasClass('white'))</code> evaluated to true, then the <code>.toggleClass()</code> would execute, and if it evaluate to false, then the <code>.toggleClass()</code> would not execute?</p>

<p>Or am i misunderstanding the purpose of <code>switch</code>. </p>
