While loop with two conditions :(

Hi there, for some reason, this loop does not work, if any of the conditions evaluates to false, it stops the loop... :*( Any ideas why?

My objective would be: (if mouse_x is < 60 AND mouse_b &1) are true, then stop the loop.

while((mouse_x > 60) && (!mouse_b & 1)){

getMouseInfo();
updateScreen();
}
What you want is while(!(mouse_x < 60 && mouse_b &1))
If you open parentheses you get mouse_x >= 60 || !(mouse_b&1)
Ok, that worked though I do not get the subtleties of it...

Particularly on the open parenthesis,

mouse_x >= 60 /* that makes sense */ but OR mouse_b NOT pressed?!

Why does the OR work here?
Ok, I got it now, thank you very much :)
Topic archived. No new replies allowed.