JavaScript: how to test if clearInterval function is true or false
<p>I've a little question i'd like to test if my <code>clearInterval(playfunction)</code> is true of false and I tought it would work like this</p>

<pre><code>if(clearInterval(play)==true){

    //do this 1

    }
    else{

    //do this 2

    }
</code></pre>

<p>But it dosnt work like this...what did I do wrong?</p>

<p>Kind Regards,
and thanks for help!</p>
