Syntax Error in Formula
Guys,
I'm trying to do a conditional formula where it compares two fields, and only calculates if one field is greater than the other. Here is the code I've cobbled together from multiple other codes that did what I wanted -in part-.
Can you guys tell me where I'm going wrong?
var 12 = this.getField("Line 12").value;
var 13 = this.getField("Line 13g").value;
if( 12 > 13) event.value = this.getField("Line 12").value - this.getField("Line 13g").value;
else event.value = "0"

