如何修改此功能,如果用戶輸入小於2500立方英尺的價格等於0?如何添加一個if else條件語句到這個函數?
function updateCombustibleMaterialFireFee(cubicft) {
var price = 42;
if (cubicft > 5000) {
price += (cubicft-5000)/1000*22;
}
// Change the parameters to the correct fee code, fee schedule, etc.
// updateFee(fcode, fsched, fperiod, fqty, finvoice, pDuplicate, pFeeSeq)
updateFee("FPERMIT47","FIRE","FINAL",price,"N","N");
logDebug("$" + price);
}
庵加上'}否則,如果(){}'? ?? – epascarello
else if(立方英尺<2500){價格= 0} – lebobbi