[英]Parsing error in Google apps script
I am getting a 'Parsing error' in my script. 我的脚本中出现“解析错误”。 I have identified the reason of this error.
我已经确定了此错误的原因。 When I remove all references to the variable ClickThreshold, it runs fine without an error.
当我删除对变量ClickThreshold的所有引用时,它可以正常运行而不会出现错误。 I have defined the variable as follows:
我将变量定义如下:
var ClickThreshold = SpreadsheetApp.getActive().getSheetByName("Input").
getRange("B4").getValue();
I am using a simple numerical operator of > ClickThreshold in my code, so I am not sure why this error is coming. 我在代码中使用的是> ClickThreshold的简单数值运算符,所以我不确定为什么会出现此错误。 Input the name of the sheet and I am entering my threshold value in B4 and the threshold value is numeric.
输入工作表的名称,然后在B4中输入阈值,该阈值是数字。
我认为问题在于getrange,此功能需要一行和一列
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.