How about EVERY.SYNC to reset all every counters to MOD-1 or 0, depending on whether you want the condition to be true on next call or not. (I can’t see resetting an individual counter by script and line number TBH)
Obvious advantages of EVERY:
- Automaitic counter increment and reset
- 60 independent counters
- Clean, readable syntax
I would argue that it expands the capabilities of the Teletype in addition to being a shortcut to common conditionals.
Quick, without EVERY, create a clock divider that divides by 13, 16, 17, 19, 23, and 25 with no errors. Each general-purpose variable and line of code you don’t use earns you 1 bonus point. (</tongue_in_cheek>)
I toyed around with the idea that each EVERY call would touch the if_else_condition flag, so that you could:
EVERY 4: // kick
ELSE: // hat
Would that have any support? I think it’s logical and readable, but that’s subjective.