V
Varangian
Hi again,
I have this simple peace of code... When xpos or ypos reaches x or y
the loop stops. My question is the "while" doesn't support && or & ? If
thats the case Imo its a big flaw. I thought I was doing it incorrectly
so I simplified it with an if statement and it work.
int x = 5
int x = 6
int xpos = 0;
int ypos = 0;
while (x != xpos && y != ypos)
{
xpos = xpos + 1;
ypos = ypos + 1;
}
I have this simple peace of code... When xpos or ypos reaches x or y
the loop stops. My question is the "while" doesn't support && or & ? If
thats the case Imo its a big flaw. I thought I was doing it incorrectly
so I simplified it with an if statement and it work.
int x = 5
int x = 6
int xpos = 0;
int ypos = 0;
while (x != xpos && y != ypos)
{
xpos = xpos + 1;
ypos = ypos + 1;
}