Quote:
Originally Posted by NevemTeve
Did you make your `count` function recursive deliberately?
|
yes , this is an example .
i variable starts at 1 with a sequence to 5 , but inside the code i add another 1 to the i var ,
witch means that 1+1 =2 , so i should be at 2 when it loops again in the "for" sentence , however i believe that this is not working because the loops "For" never reaches the "Done" command to start the next sequence witch is 2 , so no matter what i do , if the loop command does not finish by itself then i will be always 1 .
I made a different approach to the code here and already fixed my issue , i added additional functions to allow the loop work correctly , however if i post these changes here it will not make any sense because i need to post the full script witch already goes in 385 lines of code , because no one will understand unless they start to read the code from the beginning .
Best way is to remove this thread because definitively the "for" loop must run until the "done" to follow to the next sequence , if not reaches "done" instruction witch tells the code that first sequence is finished and can go to next sequence then it will never work .