What is the best way to have a function toggle between two different processes?
<p>I have a function that I want it execute alternating processes every time it's triggered. Any help on how I would achieve this would be great.</p>

<pre><code>function onoff(){
    statusOn process /*or if on*/ statusOff process
}
</code></pre>
