Wilfried Mestdagh wrote: > Hello Sid, >> for n := 0 to Count - 1 do >> if CheckAccount(Items[n]) then result := true; > > Yes correct, but I just liked the 'or' :)
You can still use "or" if you want: Result := CheckAccount(Items[n]) or Result; >> short-circuit evaluation > > This is probably my english, but this is for me not a short circuit > evaluation. eg this is: > if a and b and c > if a already evaluate false then dont check the rest. That is partial > expression check or short circuit, but maybe it is my English... The full name is "short-circuit Boolean evaluation." When evaluating a Boolean expression, the evaluation will be short-circuited when the result of the evaluation has been determined. -- Rob __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
