Adding variables together then running them through an If/else
<p>I'm trying to build a form which takes the total ammout of products requested, adds them together and then based on the total amount of products, spits out a price.</p>

<p>This is what I've got so far:</p>

<pre><code> /* shipping total */
var imShipping = function(){
var emy = parseInt($('#user_inputEm').val());
    if (isNaN(emy)) emy = 0;
var pri = parseInt($('#user_inputprin').val());
    if (isNaN(pri)) pri = 0;
var glo = parseInt($('#user_inputglow').val());
    if (isNaN(glo)) glo = 0;
var deb = parseInt($('#user_inputdeb').val());
    if (isNaN(deb)) deb = 0;
var shitotal = parseInt($('thisValue').val(emy + pri + glo + deb));
    var sifunc = function(i){
    var any;
        if(i = 100){
         return any = 30;
        }else if(i = 200){
        return any = 50;
        }else{
        return any = 60;
        }
    };
return $('#shipQuote2').text(sifunc(shitotal));
}
</code></pre>

<p>here it is on jsfiddle.net
<a href="http://jsfiddle.net/4cUhp/20/" rel="nofollow">http://jsfiddle.net/4cUhp/20/</a></p>

<p>Any help would be great.</p>

<p>Thanks,</p>
