5 Replies Latest reply on May 15, 2015 1:45 AM by try67

    Logic problem to divide from total


      I'm attempting to subract a value from a total, and then divide from that total to find out how many questions a person got wrong (every question assigned a value of 4)

      and I cannot seem to wrap my head around the plain english script i need to use. I know its staring at me in the face.



      var DEDUCTION = this.getField("TOTAL").value;
      if ( TOTAL = 100 ) event.value = "0";

      else if ( TOTAL < 100 ) event.value = TOTAL - 100 / -4;


      it always displays as 0. Am I off my rockers thinking that this is correct script?