Hi everyone,
could i use the boolean operation OR (||) into a While cycle?, i.e:
------------------------Example-------------------------
bool BooleanFlag=False;
int n;
int start()
{
Alert("Program Start");
while(n<6 || BooleanFlag==False)
{
Alert("BooleanFlag =",BooleanFlag);
Alert("n =", n);
BooleanFlag=True;
n++;
}
Alert("Program finish");
n=0;
return(0);
}
----------------------------------------------------------
When i try to program something like this, the cycle while just operates on the n<6 condition, bypassing the 2dn one or the || condition.
if you change the order of the condition,
While(BooleanFlag==False || n<6)
the result is the same.
Thanks.