Good morning, everybody.
I have a problem that can't understand
the result is 3 prints. only the variable declared in the function OnTick works.
I have this problem only with while and do-while loops. I do not have this problem with for-loops.
when i try to remove the variable "a", the loop results in infinity.
Good morning, everybody.
I have a problem that can't understand
the result is 3 prints. only the variable declared in the function OnTick works.
I have this problem only with while and do-while loops. I do not have this problem with for-loops.
when i try to remove the variable "a", the loop results in infinity.
... ok, try this
int a = 0; void OnTick(){ string testo = ""; while(a < 3){ testo += "ciao \n"; a++; } Comment(testo); }
why is this an infinite loop?
... ok, try this
why is this an infinite loop?
I find the problem, it wasn't the while loop problem
thanks
Don't do that. Someone searching might find this thread and still be clueless. What was the problem? What solved what?
How To Ask Questions The Smart Way. 2004
When You Ask.
Follow up with a brief note on the solution.
Don't do that. Someone searching might find this thread and still be clueless. What was the problem? What solved what?
How To Ask Questions The Smart Way. 2004
When You Ask.
Follow up with a brief note on the solution.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good morning, everybody.
I have a problem that can't understand
the result is 3 prints. only the variable declared in the function OnTick works.
I have this problem only with while and do-while loops. I do not have this problem with for-loops.
when i try to remove the variable "a", the loop results in infinity.