Simple Java not working
I'm sure there's an exceedingly simple answer I'm missing, but I can't seem to get this to work right. All I want to do is subtract 2 from the sum value if the radio button ABCs is marked "NA" but it seems that no matter what I do, it still displays 8.
Name: ABCs
Radio Button Choice: NA
Here was my best shot:
(function () {
var sum = 8;
if(ABCs.value == "NA"){
sum = sum -2;}
else {sum = sum;}
event.value = sum;
})();
Thank you for your help!
