Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Registered User Joined: 4/14/2016 Posts: 11
|
Thanks for clarifying Bruce.
Cheers,
Lawrence
|
|
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?
|
|
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
|
|
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
|
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
No, you cannot mix timeframes within a PCF.
|
|
Guest-1 |