Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
counter
#1
I have a macro that repeats many times. i would like to have a counter that i can check at 200 and if =200 perform a function and reset counter to zero, and if not true, continue with macro. i woud like this code to be in an IF /ELSE stucture.

I have tried doing this with the ctr command and also have tried it with the time diff function.

can u pls give an example of both.

As far as the time diff. command, how can i reset the starting time to the current time once i satisfied my condition lets say 5 min.

TY for ur support on this issue

BTW Great Tool
#2
To repeat use commands rep or for. Use commands if and else to create IF/ELSE structure. Read more in help. Example:

Code:
Copy      Help
int i ;;counter
for i 0 200
,your
,macro
,here


I can't say anything about time diff or ctr, because there is no such functions in QM.


Forum Jump:


Users browsing this thread: 1 Guest(s)