如果今天的日期大于或等于Google表格列中的日期,则通过电子邮件发送警报

时间:2018-10-30 19:12:51

标签: javascript google-apps-script

我尝试使用以下脚本,但是它根据概述范围内的行数发送电子邮件。 if(语句)不执行。有人可以帮我吗?

num1 = int(input("Enter a number:"))
print ("Largest: " + str(num1) + "\n")

num2 = int(input("Enter a number:"))
if (num1 > num2):
    print ("Largest: " + str(num1) + "\n")
else:
    print ("Largest: " + str(num2) + "\n")

num3 = int(input("Enter a number:"))
if (num1 > num2 and num1 > num3):
    print ("Largest: " + str(num1) + "\n")
elif (num2 > num3):
    print ("Largest: " + str(num2) + "\n")
else:
    print ("Largest: " + str(num3) + "\n")

num4 = int(input("Enter a number:"))
if (num1 > num2 and num1 > num3 and num1 > num4):
    print ("Largest: " + str(num1) + "\n")
elif (num2 > num3 and num2 > num4):
    print ("Largest: " + str(num2) + "\n")
elif (num3 > num4):
    print ("Largest: " + str(num3) + "\n")
else:
    print ("Largest: " + str(num4) + "\n")

num5 = int(input("Enter a number:"))
if (num1 > num2 and num1 > num3 and num1 > num4 and num1 > num5):
    print ("Largest: " + str(num1) + "\n")
elif (num2 > num3 and num2 > num4 and num2 > num5):
    print ("Largest: " + str(num2) + "\n")
elif (num3 > num4 and num3 > num5):
    print ("Largest: " + str(num3) + "\n")
elif (num4 > num5):
    print ("Largest: " + str(num4) + "\n")
else:
    print ("Largest: " + str(num5) + "\n")

num6 = int(input("Enter a number:"))
if (num1 > num2 and num1 > num3 and num1 > num4 and num1 > num5 and num1 > num6):
    print ("Largest: " + str(num1) + "\n")
elif (num2 > num3 and num2 > num4 and num2 > num5 and num2 > num6):
    print ("Largest: " + str(num2) + "\n")
elif (num3 > num4 and num3 > num5 and num3 > num6):
    print ("Largest: " + str(num3) + "\n")
elif (num4 > num5 and num4 > num6):
    print ("Largest: " + str(num4) + "\n")
elif (num5 > num6):
    print ("Largest: " + str(num5) + "\n")
else:
    print ("Largest: " + str(num6) + "\n")

0 个答案:

没有答案