我需要在 google 脚本中包含和/或声明 if 条件。我是脚本新手,无法找到这样做的方法。请帮忙
if (dateval<>"") and (repval<>"") {condition if true}
感谢您的帮助。
最佳答案
您可以在 that subject 上找到所有信息(和其他人)on this site.
在你的例子中,答案是
if (dateval!="" && repval!="") {do something}
关于google-apps-script - 在 google docs 脚本中添加和/或 if 语句的子句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15855762/