If your goal is to reset the value of some variables that your program is operating with then:
1 You must know which variable you want exactly to reset
2 You must add condition in your program main loop that will trigger only when it`s fullfiled.
Example:
simpleVariable as integer
do
Print "The variable simpleVariable= :",simpleVariable
inc simpleVariable `This will increase simpleVariable
Print "WARNING!!! simpleVariable will reset when it`s value is 10"
wait 1000
cls
if simpleVariable>=10
simpleVariable=0
cls
Print "simpleVariable reset back to 0..."
wait 3000
cls
endif
loop
rem End of our main loop
end
Is that your goal?
Where is a will, there is a way.