To reset it, have this before the below gene:
cond
*.var 100 >=
start
0 .var store
stop
Also, by *.var I mean a custom label. At the top of your DNA have this:
def var memorylocation. where var is the label name and memorylocation is a free memory location.
inc tends to work differently than a store command. Inc seems to work more immediatly, so make sure you don't do something like:
cond
*.var = 0
start
.var inc
stop
cond
*.var = 1
start
.var inc
stop
or it will execute both genes. Place them in reverse order and you're safe.