Skip to main content
davidm76220796
Known Participant
November 1, 2016
Answered

Syntax Error 5

  • November 1, 2016
  • 2 replies
  • 602 views

I really am trying to comb through the posts before asking questions, but I really can't figure out what is wrong.

var C5= this.getField("C5").value

if(((C5-3)/2)<0);

{

event.value=0;

}else{

event.value=((C5-3)/2);

}

It keeps giving me a syntax error 5

I am using Acrobat to create the form.

This topic has been closed for replies.
Correct answer try67

Remove the semi-colon at the end of the second line.

2 replies

davidm76220796
Known Participant
November 1, 2016

Try67 - You are a ROCK STAR !!

Thanks very much!!

dkm

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 1, 2016

Remove the semi-colon at the end of the second line.