11 Replies Latest reply on Sep 2, 2016 4:24 AM by Test Screen Name

    What is wrong in this JavaScript code?

    Shekharmine Level 1

      Untitled.png

      Please fix this error.

       

      var Exp = 'totalexperience';

      var Sup = 'totalsup';

      var f = this.getField(Exp).value;

      var a = this.getField(Sup).value;

      if(f==0)||(a==0)

      {

      event.value=f+a;

      }

      Else if(f!=0)||(a!=0)

      {

      event.value=a/f*100;

      }