具有用下面的代碼語法錯誤的問題在線路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。 – FDinoff 2013-05-13 20:48:11