javascript If Else block is jumping to Else, even when the Conditional is marking true
<p>I am attempting to perform an operation based on a true or false value from a checkbox.  Using an If:Else statment I test if the checkbox value is "true", onfurtunetly even if the checkbox value marks "true" its going into the Else section of my statment.</p>

<p>Can anyone please explain to me the reason for this?</p>

<pre><code>        var CheckedBoxs = $(stepTitle + " input:checkbox");
        for (var val in CheckedBoxs) {
            if (val.toString() === "length") {
                break;
            } //End IF
            if (CheckedBoxs[val].value === "true") {
                OneUp = parseInt(val) + 1;
                var PriceTag = "  -$";
                PriceTag += HiddenInput[OneUp].name.substring(HiddenInput[OneUp].name.indexOf(":") + 1, HiddenInput[OneUp].name.length);
                Lbls[val].innerHTML = Lbls[val].innerHTML + '&lt;span class="PriceChange"&gt;' + PriceTag + "&lt;/span&gt;";
            } else {
                OneUp = parseInt(val) + 1;
                var PriceTag = "  +$";
                PriceTag += HiddenInput[OneUp].name.substring(HiddenInput[OneUp].name.indexOf(":") + 1, HiddenInput[OneUp].name.length);
                Lbls[val].innerHTML = Lbls[val].innerHTML + '&lt;span class="PriceChange"&gt;' + PriceTag + "&lt;/span&gt;";
            }//End If
        }//End For
</code></pre>

<p>I have seen many question related to If:Else statments, but was unable to find one that invloved a checkbox, apologies if this is a repeat.</p>
