Crack loop

Posted By: Tuguldur717

Crack loop - 02/19/18 17:27

I wrote code. It executed in 200 bars. I wrote "prinf" command that execute i++ in run function. But it printed 200 times i value with plus 1 increment. Actually i need exactly only one time "printf" execution with last value of i. If i wrote "printf" command out of run function it printed first i value lol. How can i fix it?
Posted By: Brax

Re: Crack loop - 02/20/18 11:50

Use EXITRUN:

if(is(EXITRUN))
printf("%d", i);
Posted By: Tuguldur717

Re: Crack loop - 02/20/18 12:02

Thank you for your response. Just nor i am testing your code bro.
© 2024 lite-C Forums