两点:
else
语句中有语法错误
函数myFunction() { var ss = SpreadsheetApp.getActiveSheet();var tt = ss.getActiveCell(B12);var tpd = ss.getActiveCell(B13);If (tt.getValue() > 2798.88) { tpd.setValue((tt.getValue()*100)/118) }If{ tpd.setValue((tt.getValue()*100)112) }}有人能指出我在哪里犯错误吗?
发布于 2018-11-13 11:42:47
您编写的If
应该是带有小写i的if
。
也如@Tim告诉你忘记了表达式中的/
除法符号
https://stackoverflow.com/questions/53288123
复制相似问题