You didn't show the code with the infinite loop, so it would be hard to tell how to fix it.
Don't worry if it looks ugly--when you show code, you give us the opportunity to teach you better ways of doing things. Also, showing your code gives us a handle on what your thought process is. If you've got a misconception, we may be able to help you through it. But as it is now, we can only guess (and probably poorly).
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Loop walkthrough
by roboticus
in thread Loop walkthrough
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |