29.01.2010, 14:10
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.
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.