Time Based Screen Rotation Help

Something like this. Tip: post code as code, not just a screenshot

tagpath = "[client]Rotation"
windows = ["Windows/ExtrusionNew", "Windows/Ovens"]

x = system.tag.read(tagpath).value % len(windows)

system.nav.swapTo(windows[x])

system.tag.write(tagpath, x + 1)