29.01.2010, 14:12
Quote:
Originally Posted by ray187
This is an endless loop as
Var1=Var2 is always true (you assign Var2 to Var1). What you want to do is Var1==Var2 which compares both values. The code after the loop is executed when the loop has ended. "break;" is the command to stop a loop. |
![afro](images/smilies/mrgreen.gif)