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

Re: "And" question



PureBytes Links

Trading Reference Links

That should work fine.  Be aware, however, that if you have an expression
which contains both AND and OR operators, you MUST group terms by
parentheses if you want to be certain that the expression will be
interpreted properly.  Most software which interprets boolean expressions,
and the rules of boolean algebra, define an operator precedence which allows
parentheses to be omitted in certain cases (and this was true in TS4).  TS6,
however (and possibly TS2000i), abandoned that approach;  if you do not
indicate by parentheses how operations are to be grouped, TS6 interprets a
boolean expression in simple left-to-right order.

Carroll Slemaker

----- Original Message -----
From: "JDS22" <jds22@xxxxxxxxxxxx>
To: "Omega-Digest" <omega-list@xxxxxxxxxx>
Sent: Monday, July 01, 2002 7:02 PM
Subject: "And" question


> Can someone tell me if you can use multiple "and" like this:
>
> Condition = high[1] > High[2] and close [1] > close[2] and close[1] >
open;
>
> I don't get an error but I was wondering if the code continues processes
> beyond the first "and" if the first "and" is True.
>
> Thanks
> Jeff
>