Use confirm() as a condition to if?
<p>I have this function:</p>

<pre><code>function RemoveProduct() {
    if (confirm("Poista?") == return true) {
        return true;
    } else {
        return false;
    }
}
</code></pre>

<p>When you click a "remove" button on the page, it should ask if it should remove a product, and if the answer is yes, it will remove it. </p>

<p>But as far as I know, I can't use another brackets on the if sentence conditions?
How this should be done?</p>
