Skip to main content
Participating Frequently
February 26, 2018
Answered

Missing ";" ... can't figure it out...

  • February 26, 2018
  • 2 replies
  • 435 views

I have the code of:

var A = this.getField("Average").value;

var B = this.getField("SalePrice").value;

If (A > B) event.value = B - A;

I am getting the message:

SyntaxError: missing ; before statement 3: at line 4

Can't figure out what's missing... feeling really stooped...

This topic has been closed for replies.
Correct answer try67

It's "if", not "If"... JS is case-sensitive.

2 replies

terryb811Author
Participating Frequently
February 26, 2018

Now I REALLY feel stoopid!

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 26, 2018

It's "if", not "If"... JS is case-sensitive.