Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Using OR in pcfs Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
donv98
Posted : Tuesday, April 26, 2016 12:21:20 PM
Registered User
Joined: 7/29/2010
Posts: 417

For some reason I thought I couldn't use OR in pcfs only AND.

Please educate me on this.

Thank you.

Bruce_L
Posted : Tuesday, April 26, 2016 12:35:43 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You may be thinking of EasyScans as an EasyScan will AND all of its EasyScan Conditions with each other.

You can use both OR and AND in Personal Criteria Formulas. The only thing to note is that OR will be evaluated before AND unless a different order of operations is forced by something like parentheses.

Both sides of AND must be true in order for the ANDed section of the PCF to be true. If either or both sides of the AND are false, then the entire section will be false.

Either or both sides of OR can be true in order for the ORed section of the PCF to be true. The section will be false only of both sides of the OR are false.

Personal Criteria Formula Syntax



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
donv98
Posted : Tuesday, April 26, 2016 1:18:32 PM
Registered User
Joined: 7/29/2010
Posts: 417

Bruce,

   Many thanks for the education.

You are correct, I was thinking of EASY scans where there is no OR.

This will enhance my ability to create better pcfs.

 

Thank you,

Don

shirodka2
Posted : Wednesday, April 27, 2016 3:46:12 AM
Registered User
Joined: 4/14/2016
Posts: 11

Hi Bruce,

If I have created multiple scan conditions from a chart (i.e. no option to see/edit formula) which I would like to use as ORs in an EasyScan, how would I go about doing it?

Or would I have "translate" the various scan conditions into PCF code in order to use them as OR conditions in relation to each other?

Thanks in advance!

Warm regards,

Lawrence 

Bruce_L
Posted : Wednesday, April 27, 2016 2:34:51 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You have to translate the various scan conditions into PCF code in order to use them as OR conditions in relation to each other in an EasyScan. This may or may not be possible depending on the conditions.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
shirodka2
Posted : Thursday, April 28, 2016 1:16:51 AM
Registered User
Joined: 4/14/2016
Posts: 11

 

Thanks for clarifying Bruce.

 

Cheers,

Lawrence

Mo.Trader
Posted : Wednesday, June 1, 2016 6:20:39 PM
Registered User
Joined: 1/3/2014
Posts: 36

Not having OR condition in a scan is a major limitation.  Is there any plan to enable usig  "OR" conditons in scans?

Bruce_L
Posted : Thursday, June 2, 2016 8:19:24 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I am not aware of any plans to add OR to EasyScans at this time. Thank you for your suggestion.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
karkoush
Posted : Sunday, June 19, 2016 12:34:30 AM
Registered User
Joined: 9/28/2014
Posts: 20

regarding the OR condition; is it possible to use OR condition in PCF that invlove two diffrent time frames? if yes; how. if not; how to go about it?

for example, I want to creat ONE scan for this : C < C1 and C1 < C2 and C2 < C3  on both 5 & 15 minutes.

thanks

 

 

 

StockGuy
Posted : Monday, June 20, 2016 9:44:06 AM

Administration

Joined: 9/30/2004
Posts: 9,187

No, you cannot mix timeframes within a PCF.

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.