Logical OR function?

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
Ed G
Posts: 2
Joined: Mon May 21, 2012 8:34 pm

Logical OR function?

Post by Ed G »

How do I specify in a scan an "OR" logical function? An "AND" function is specified as &. "OR" does not compile.

EXAMPLE:
cond1:=c<ma(c,20);
cond2:=ma(c,10)<ma(c,15);

event: cond1 OR cond2;
joel847
Posts: 15
Joined: Fri May 18, 2012 1:01 pm

Re: Logical OR function?

Post by joel847 »

Here is an example with correct AND OR symbols.
| OR
& AND

cond1:=c<ma(c,20);
cond2:=ma(c,10)<ma(c,15);
cond3:=ma(c,3)<ma(c,5);

event: cond1 | ( cond2 & cond3);
Last edited by joel847 on Wed Jul 11, 2012 8:06 pm, edited 1 time in total.
Ed G
Posts: 2
Joined: Mon May 21, 2012 8:34 pm

Re: Logical OR function?

Post by Ed G »

Thanks, Joel
Post Reply