I'm trying to use a do..while(true) by evaluating 4 boolean values. but no matter which operators I use it does'nt work. I can get it to work using an if statement and a goto link(uggh!!) Here's the code that works:
//If statement with goto
waitfor4finishedjobs:
if (MyVariables.IsJob1Done & MyVariables.IsJob2Done & MyVariables.IsJob3Done & MyVariables.IsJob4Done)
{ return; }
else { goto waitfor4finishedjobs; }
But this doesn't work.
//Do..while(true)
do
{//do nothing just loop}
while (MyVariables.IsJob1Done & MyVariables.IsJob2Done & MyVariables.IsJob3Done & MyVariables.IsJob4Done);
{return}`
I've tried all combinations of && and !. inital variables are all false. I want to break out of the loop only when all variables are true. but it breaks out if any one of them is true. I miss VB's do..until !!!!