try this temp = C<Ref(L,-6) AND vary<6; varx = temp AND NOT Ref(temp ,-6);
-- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/18 gp_sydney <[EMAIL PROTECTED]>: > No, you can't do that as the right-hand expression is evaluated on the > whole array before anything is assigned to the left-hand variable. > That means that "varx" is effectively constant during the expression > evaluation for the whole array. It's essentially the same as: > > temp = IIf(C<Ref(L,-6) AND vary<6 AND NOT Ref(varx,-6),True,False); > varx = temp; > > To do what you are suggesting would require a loop. > > Regards, > GP > > > --- In amibroker@yahoogroups.com, "sidhartha70" <[EMAIL PROTECTED]> wrote: >> >> Hi All, >> >> Is it possible to have recursive boolean expressions...? i.e. the true >> or false of the current value of the array depends on whether a >> previous value of the array is true or false. >> >> So for example, >> >> varx = IIf(C<Ref(L,-6) AND vary<6 AND NOT Ref(varx,-6),True,False); >> >> Would that work... or are recursive booleans like this not allowed?? >> >> TIA >>