【发布时间】:2013-05-13 20:45:11
【问题描述】:
在第 11、12、13 行出现以下代码语法错误问题。
// Get the field values
var DP = +getField("DESIGN_Projection").value;
var TC = +getField("ASBUILT_Top_of_Concrete").value;
var GE = +getField("ASBUILT_Ground_Elevation").value;
// If DP is N/A, set this field to display N/A
If (DP === N/A); {
event.value = "NA"; // display N/A in this field
} else
{
//...otherwise, set this field value to the result of the following calculation
event.value = ((TC - GE) * 1000);
}
【问题讨论】:
-
这不是java吗?对我来说它看起来像 javascript。
标签: javascript if-statement syntax