Establishing a minimum value for Javascript variable
<p>I have a series of radio buttons on my page that, when checked, establish certain conditions. For each condition, a value is subtracted from the PRICE, which is the final variable that is provided to the user.</p>

<pre><code>if (condition1==0){price-=5;}
if (condition2==1){price-=4;}       
if (condition3==1){price-=10;}
var minimum = 1;
if (price &lt; minimum){price = minimum;)
</code></pre>

<p>The conditions are all working exactly as I want. For this code group, I basically don't want "price" to go below 1. My problem is that this is creating an error and I am really not sure why. I am more familiar with Java, so perhaps I am running into an error that Javascript throws that I am not familiar with.</p>

<p>What can I do to make sure that my "price" variable does not fall below my "minimum" variable, without throwing an error?</p>
