1import time
2def waitUntil(condition, output): #defines function
3 wU = True
4 while wU == True:
5 if condition: #checks the condition
6 output
7 wU = False
8 time.sleep(60) #waits 60s for preformance
9
10waitUntil(Cookies >= 0, eatCookies()) #runs function (output MUST be another function)