Skip to main content
Question

Composite Test AND OR order in TestFilter


Forum|alt.badge.img+1

Hi,

I am using the TestFilter with a composite test set up. However, the results are not what I am expecting. I believe it is something to do with my use of brackets and the AND and OR operator order.

I can't get the following composite test to work:

(1 OR 2 OR 3) AND (4 OR 5 OR 6)

Can anyone explain the order of precedence for OR and AND in the TestFilter composite test and whether the brackets are even recognised?

Thanks

6 replies

david_r
Evangelist
  • May 31, 2017

Can you show a screen shot of your setup?

As it is, it looks like you're trying to test for an attribute having two different values simultaneously.


Forum|alt.badge.img+1
  • Author
  • May 31, 2017

Hi David,

Screen shot is below.

I'm trying to find all instances where LINE is equal to 1 or 2 or 3 AND COLOUR = PINK or BLUE or GREEN.

Examples which I would like to find include;

LINE = 1 and COLOUR = BLUE

LINE = 3 and COLOUR = PINK,

etc

Thanks,


Forum|alt.badge.img+1
  • Author
  • May 31, 2017

Sorry forgot the screen grab:


lottegis
Forum|alt.badge.img+1
  • May 31, 2017
aquamarine wrote:

Sorry forgot the screen grab:

For BLUE, is the value supposed to be checked for NOT-BLUE? It looks like any value you're going to test for COLOUR is going to pass except for the actual BLUE value.

 


Forum|alt.badge.img+1
  • Author
  • May 31, 2017
aquamarine wrote:

Sorry forgot the screen grab:

sorry the BLUE is not mean to be ticked - that is a mistake.

 

 


david_r
Evangelist
  • June 1, 2017

I just created a Tester with a similar setup and it worked as expected (FME 2017.0). Could you perhaps upload a small workspace here that demonstrates the issue?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings