No, the If statement is not dependent on the checktmr command. whoops I misread your question!
You could use checktmr like this:
//stores 0 into variable A to prevent the code from not running when it encounters the Repeat loop
//starts the timer and stores the start time into variable X
//This will continue to 'repeat' the following chunk of code until A equals 1
//<input your own code here if you want>
//Checks if the time since the timer was started is less than 5 seconds. If so then it stores 1 into variable A. If it is not true, it will ignore the 1→A and continue running the rest of the code
//this simply stores the value 1 into variable A. Now when the code encounters the Repeat A=1 loop again, it will quit.
//<more of your code here if you want>
//you need an End statement to tell the Repeat loop "Hey, don't repeat any code pass this point!"
//displays that A now equals 1
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum