Gateway tag change or Gateway timer scripts expressions and delays

Something like this (I would delegate to a script module):

tagpaths = ['[default]'+y for y in ['Cond1', 'Cond2', 'NotBefore']]

def conditionalRun(event):
	cond1, cond2, notbefore = [x.value for x in system.tag.readAll(tagpaths)]

	# Check run permissives
	if cond1 and cond2:
		# Check Not Before criteria
		now = system.date.now()
		if now.before(notbefore):
			return
		system.tag.write(tagpaths[-1], system.date.addDays(now, 14))

		# Do actions that must not repeat faster that every two weeks.