[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "While" Loop EL question



PureBytes Links

Trading Reference Links

On Fri, 26 Jul 2002, Schedlbauer, Joseph E. wrote:

> When using a "While" loop in EL, at some point (hopefully) in the loop the
> "while" condition changes, ending the looping.  My question is, does the
> program jump out of the loop the instant the condition changes, or does it
> complete the loop it's currently on?
> 
> Thanks for the help.
> 

The while loop finishes the next time the condition is tested

done = false;
while done = false begin
	if condition1 = true then
		done = true;
	{ this next line is still executed }
	value1 = value2 + value3;
end;